Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The AMI_ModSpecblock_ArrayIterator class

AMI_ArrayIterator
   |
   --AMI_ModSpecblock_ArrayIterator

• Introduction

Specblock array iterator model.

• Class synopsis

AMI_ModSpecblock_ArrayIterator extends AMI_ArrayIterator {
/* Inherited Properties */
// Initial data array
protected AMI_ArrayIterator::$aData = array();
// Array of fields
protected AMI_ArrayIterator::$aFields = array();
/* Methods */
// Returns module Id.
public getModId ( ) returns string;
/* Inherited Methods */
// Initializing array iterator data.
public AMI_ArrayIterator::__construct ( [ $aData = array() ] ) returns AMI_ArrayIterator;
// Returns item model object and load data for primary key field param.
public AMI_ArrayIterator::find ( mixed $id, [ $aFields = array() ] ) returns AMI_ArrayIteratorItem;
// Returns item model object and load data for non-primary key field.
public AMI_ArrayIterator::findByFields ( $aSearchCondition, [ $aFields = array() ] ) returns AMI_ArrayIteratorItem;
// Returns the array of available fields.
public AMI_ArrayIterator::getAvailableFields ( [ bool $bAppendEventFields = null ] ) returns array;
// Returns initial data array.
public AMI_ArrayIterator::getData ( ) returns array;
// Necessary for AMI_ModTableList compatibility.
public AMI_ArrayIterator::getFieldName ( string $alias, [ string $prefix = '' ] ) returns null;
// Called when receive array of validators, allow add own validators.
public AMI_ArrayIterator::getItem ( [ mixed $type = '' ] ) returns void;
// Returns list model object.
public AMI_ArrayIterator::getList ( [ string $type = null ] ) returns AMI_ArrayIteratorList;
// Returns array of row fields.
public AMI_ArrayIterator::getTableFieldsData ( ) returns array;
// Checks if model has a field.
public AMI_ArrayIterator::hasField ( string $name, [ bool $bAppendEventFields = null ] ) returns bool;
// Set module id.
public AMI_ArrayIterator::setModId ( mixed $id ) returns void;
// Returns module id.
protected AMI_ArrayIterator::getModId ( ) returns string;
}
Tags:
since 5.14.8
resource specblock_array_iterator/table/model AMI::getResourceModel('specblock_array_iterator/table', array($aItems))

• Class Methods

// Returns module Id.
public getModId ( ) returns string;