Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
Collection Class Reference
Inheritance diagram for Collection:
ArrayInterface CollectionDataSourceInterface OptionSourceInterface ArgumentInterface Collection TransactionsCollection AbstractServiceCollection AbstractDb Filesystem Collection ThemeList Collection DataCollection Collection Collection Collection DataSource Collection

Public Member Functions

 __construct (EntityFactoryInterface $entityFactory)
 
 addFilter ($field, $value, $type='and')
 
 addFieldToFilter ($field, $condition)
 
 getFilter ($field)
 
 isLoaded ()
 
 getCurPage ($displacement=0)
 
 getLastPageNumber ()
 
 getPageSize ()
 
 getSize ()
 
 getFirstItem ()
 
 getLastItem ()
 
 getItems ()
 
 getColumnValues ($colName)
 
 getItemsByColumnValue ($column, $value)
 
 getItemByColumnValue ($column, $value)
 
 addItem (\Magento\Framework\DataObject $item)
 
 getAllIds ()
 
 removeItemByKey ($key)
 
 removeAllItems ()
 
 clear ()
 
 walk ($callback, array $args=[])
 
 each ($objMethod, $args=[])
 
 setDataToAll ($key, $value=null)
 
 setCurPage ($page)
 
 setPageSize ($size)
 
 setOrder ($field, $direction=self::SORT_ORDER_DESC)
 
 setItemObjectClass ($className)
 
 getNewEmptyItem ()
 
 distinct ($flag)
 
 loadData ($printQuery=false, $logQuery=false)
 
 load ($printQuery=false, $logQuery=false)
 
 loadWithFilter ($printQuery=false, $logQuery=false)
 
 toXml ()
 
 toArray ($arrRequiredFields=[])
 
 toOptionArray ()
 
 toOptionHash ()
 
 getItemById ($idValue)
 
 getIterator ()
 
 count ()
 
 getFlag ($flag)
 
 setFlag ($flag, $value=null)
 
 hasFlag ($flag)
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

const SORT_ORDER_ASC = 'ASC'
 
const SORT_ORDER_DESC = 'DESC'
 

Protected Member Functions

 _setIsLoaded ($flag=true)
 
 _addItem ($item)
 
 _getItemId (\Magento\Framework\DataObject $item)
 
 _renderFilters ()
 
 _renderOrders ()
 
 _renderLimit ()
 
 _toOptionArray ($valueField='id', $labelField='name', $additional=[])
 
 _toOptionHash ($valueField='id', $labelField='name')
 

Protected Attributes

 $_items = []
 
 $_itemObjectClass = \Magento\Framework\DataObject::class
 
 $_orders = []
 
 $_filters = []
 
 $_isFiltersRendered = false
 
 $_curPage = 1
 
 $_pageSize = false
 
 $_totalRecords
 
 $_isCollectionLoaded
 
 $_flags = []
 
 $_entityFactory
 

Detailed Description

Data collection

TODO: Refactor use of \Magento\Framework\Option\ArrayInterface in library.

@api

Since
100.0.2

Definition at line 19 of file Collection.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( EntityFactoryInterface  $entityFactory)
Parameters
EntityFactoryInterface$entityFactory

Definition at line 105 of file Collection.php.

106  {
107  $this->_entityFactory = $entityFactory;
108  }

Member Function Documentation

◆ __sleep()

__sleep ( )
Returns
string[]
Since
100.0.11

Definition at line 886 of file Collection.php.

887  {
888  $properties = array_keys(get_object_vars($this));
889  $properties = array_diff(
890  $properties,
891  [
892  '_entityFactory',
893  ]
894  );
895  return $properties;
896  }
$properties
Definition: categories.php:26

◆ __wakeup()

__wakeup ( )

Init not serializable fields

Returns
void
Since
100.0.11

Definition at line 904 of file Collection.php.

905  {
907  $this->_entityFactory = $objectManager->get(EntityFactoryInterface::class);
908  }
$objectManager
Definition: bootstrap.php:17

◆ _addItem()

_addItem (   $item)
protected

Add item that has no id to collection

Parameters
\Magento\Framework\DataObject$item
Returns
$this

Definition at line 422 of file Collection.php.

423  {
424  $this->_items[] = $item;
425  return $this;
426  }

◆ _getItemId()

_getItemId ( \Magento\Framework\DataObject  $item)
protected

Retrieve item id

Parameters
\Magento\Framework\DataObject$item
Returns
mixed

Definition at line 434 of file Collection.php.

435  {
436  return $item->getId();
437  }

◆ _renderFilters()

_renderFilters ( )
protected

Render sql select conditions

Returns
$this

Definition at line 630 of file Collection.php.

631  {
632  return $this;
633  }

◆ _renderLimit()

_renderLimit ( )
protected

Render sql select limit

Returns
$this

Definition at line 650 of file Collection.php.

651  {
652  return $this;
653  }

◆ _renderOrders()

_renderOrders ( )
protected

Render sql select orders

Returns
$this

Definition at line 640 of file Collection.php.

641  {
642  return $this;
643  }

◆ _setIsLoaded()

_setIsLoaded (   $flag = true)
protected

Set collection loading status flag

Parameters
bool$flag
Returns
$this

Definition at line 228 of file Collection.php.

229  {
230  $this->_isCollectionLoaded = $flag;
231  return $this;
232  }

◆ _toOptionArray()

_toOptionArray (   $valueField = 'id',
  $labelField = 'name',
  $additional = [] 
)
protected

Convert items array to array for select options

return items array array( $index => array( 'value' => mixed 'label' => mixed ) )

Parameters
string$valueField
string$labelField
array$additional
Returns
array

Definition at line 760 of file Collection.php.

761  {
762  $res = [];
763  $additional['value'] = $valueField;
764  $additional['label'] = $labelField;
765 
766  foreach ($this as $item) {
767  foreach ($additional as $code => $field) {
768  $data[$code] = $item->getData($field);
769  }
770  $res[] = $data;
771  }
772  return $res;
773  }
$code
Definition: info.phtml:12

◆ _toOptionHash()

_toOptionHash (   $valueField = 'id',
  $labelField = 'name' 
)
protected

Convert items array to hash for select options

return items hash array($value => $label)

Parameters
string$valueField
string$labelField
Returns
array

Definition at line 801 of file Collection.php.

802  {
803  $res = [];
804  foreach ($this as $item) {
805  $res[$item->getData($valueField)] = $item->getData($labelField);
806  }
807  return $res;
808  }

◆ addFieldToFilter()

addFieldToFilter (   $field,
  $condition 
)

Add field filter to collection

If $condition integer or string - exact value will be filtered ('eq' condition)

If $condition is array - one of the following structures is expected:

  • ["from" => $fromValue, "to" => $toValue]
  • ["eq" => $equalValue]
  • ["neq" => $notEqualValue]
  • ["like" => $likeValue]
  • ["in" => [$inValues]]
  • ["nin" => [$notInValues]]
  • ["notnull" => $valueIsNotNull]
  • ["null" => $valueIsNull]
  • ["moreq" => $moreOrEqualValue]
  • ["gt" => $greaterValue]
  • ["lt" => $lessValue]
  • ["gteq" => $greaterOrEqualValue]
  • ["lteq" => $lessOrEqualValue]
  • ["finset" => $valueInSet]
If non matched - sequential parallel arrays are expected and OR conditions
will be built using above mentioned structure.
Example:
$field = ['age', 'name'];
$condition = [42, ['like' => 'Mage']];

The above would find where age equal to 42 OR name like Mage%.

Parameters
string | array$field
string | int | array$condition
Exceptions

Definition at line 170 of file Collection.php.

171  {
172  throw new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase('Not implemented'));
173  }

◆ addFilter()

addFilter (   $field,
  $value,
  $type = 'and' 
)

Add collection filter

Parameters
string$field
string$value
string$typeand|or|string
Returns
$this

Definition at line 118 of file Collection.php.

119  {
120  $filter = new \Magento\Framework\DataObject();
121  // implements ArrayAccess
122  $filter['field'] = $field;
123  $filter['value'] = $value;
124  $filter['type'] = strtolower($type);
125 
126  $this->_filters[] = $filter;
127  $this->_isFiltersRendered = false;
128  return $this;
129  }
$type
Definition: item.phtml:13
$value
Definition: gender.phtml:16

◆ addItem()

addItem ( \Magento\Framework\DataObject  $item)

Adding item to item array

Parameters
\Magento\Framework\DataObject$item
Returns
$this
Exceptions

Definition at line 399 of file Collection.php.

400  {
401  $itemId = $this->_getItemId($item);
402 
403  if ($itemId !== null) {
404  if (isset($this->_items[$itemId])) {
405  throw new \Exception(
406  'Item (' . get_class($item) . ') with the same ID "' . $item->getId() . '" already exists.'
407  );
408  }
409  $this->_items[$itemId] = $item;
410  } else {
411  $this->_addItem($item);
412  }
413  return $this;
414  }
_getItemId(\Magento\Framework\DataObject $item)
Definition: Collection.php:434

◆ clear()

clear ( )

Clear collection

Returns
$this

Definition at line 483 of file Collection.php.

484  {
485  $this->_setIsLoaded(false);
486  $this->_items = [];
487  return $this;
488  }

◆ count()

count ( )

Retrieve count of collection loaded items

Returns
int

Definition at line 841 of file Collection.php.

842  {
843  $this->load();
844  return count($this->_items);
845  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ distinct()

distinct (   $flag)

Set select distinct

Parameters
bool$flag
Returns
$this @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 662 of file Collection.php.

663  {
664  return $this;
665  }

◆ each()

each (   $objMethod,
  $args = [] 
)

Call method or callback on each item in the collection.

Parameters
string | array | \Closure$objMethod
array$args
Returns
void

Definition at line 524 of file Collection.php.

525  {
526  if ($objMethod instanceof \Closure) {
527  foreach ($this->getItems() as $item) {
528  $objMethod($item, ...$args);
529  }
530  } elseif (is_array($objMethod)) {
531  foreach ($this->getItems() as $item) {
532  call_user_func($objMethod, $item, ...$args);
533  }
534  } else {
535  foreach ($this->getItems() as $item) {
536  $item->$objMethod(...$args);
537  }
538  }
539  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17

◆ getAllIds()

getAllIds ( )

Retrieve ids of all items

Returns
array

Definition at line 444 of file Collection.php.

445  {
446  $ids = [];
447  foreach ($this->getItems() as $item) {
448  $ids[] = $this->_getItemId($item);
449  }
450  return $ids;
451  }
_getItemId(\Magento\Framework\DataObject $item)
Definition: Collection.php:434

◆ getColumnValues()

getColumnValues (   $colName)

Retrieve field values from all items

Parameters
string$colName
Returns
array

Definition at line 342 of file Collection.php.

343  {
344  $this->load();
345 
346  $col = [];
347  foreach ($this->getItems() as $item) {
348  $col[] = $item->getData($colName);
349  }
350  return $col;
351  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getCurPage()

getCurPage (   $displacement = 0)

Get current collection page

Parameters
int$displacement
Returns
int

Definition at line 240 of file Collection.php.

241  {
242  if ($this->_curPage + $displacement < 1) {
243  return 1;
244  } elseif ($this->_curPage + $displacement > $this->getLastPageNumber()) {
245  return $this->getLastPageNumber();
246  } else {
247  return $this->_curPage + $displacement;
248  }
249  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17

◆ getFilter()

getFilter (   $field)

Search for a filter by specified field

Multiple filters can be matched if an array is specified:

  • 'foo' – get the first filter with field name 'foo'
  • array('foo') – get all filters with field name 'foo'
  • array('foo', 'bar') – get all filters with field name 'foo' or 'bar'
  • array() – get all filters
Parameters
string|string[]$field
Returns
\Magento\Framework\DataObject|\Magento\Framework\DataObject[]|void

Definition at line 187 of file Collection.php.

188  {
189  if (is_array($field)) {
190  // empty array: get all filters
191  if (empty($field)) {
192  return $this->_filters;
193  }
194  // non-empty array: collect all filters that match specified field names
195  $result = [];
196  foreach ($this->_filters as $filter) {
197  if (in_array($filter['field'], $field)) {
198  $result[] = $filter;
199  }
200  }
201  return $result;
202  }
203 
204  // get a first filter by specified name
205  foreach ($this->_filters as $filter) {
206  if ($filter['field'] === $field) {
207  return $filter;
208  }
209  }
210  }

◆ getFirstItem()

getFirstItem ( )

Retrieve collection first item

Returns
\Magento\Framework\DataObject

Definition at line 297 of file Collection.php.

298  {
299  $this->load();
300 
301  if (count($this->_items)) {
302  reset($this->_items);
303  return current($this->_items);
304  }
305 
306  return $this->_entityFactory->create($this->_itemObjectClass);
307  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getFlag()

getFlag (   $flag)

Retrieve Flag

Parameters
string$flag
Returns
bool|null

Definition at line 853 of file Collection.php.

854  {
855  return $this->_flags[$flag] ?? null;
856  }

◆ getItemByColumnValue()

getItemByColumnValue (   $column,
  $value 
)

Search first item by field value

Parameters
string$column
mixed$value
Returns
\Magento\Framework\DataObject || null

Definition at line 380 of file Collection.php.

381  {
382  $this->load();
383 
384  foreach ($this as $item) {
385  if ($item->getData($column) == $value) {
386  return $item;
387  }
388  }
389  return null;
390  }
$value
Definition: gender.phtml:16
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getItemById()

getItemById (   $idValue)

Retrieve item by id

Parameters
mixed$idValue
Returns
\Magento\Framework\DataObject

Definition at line 816 of file Collection.php.

817  {
818  $this->load();
819  if (isset($this->_items[$idValue])) {
820  return $this->_items[$idValue];
821  }
822  return null;
823  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getItems()

getItems ( )

Retrieve collection items

Returns
\Magento\Framework\DataObject[]

Definition at line 330 of file Collection.php.

331  {
332  $this->load();
333  return $this->_items;
334  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getItemsByColumnValue()

getItemsByColumnValue (   $column,
  $value 
)

Search all items by field value

Parameters
string$column
mixed$value
Returns
array

Definition at line 360 of file Collection.php.

361  {
362  $this->load();
363 
364  $res = [];
365  foreach ($this as $item) {
366  if ($item->getData($column) == $value) {
367  $res[] = $item;
368  }
369  }
370  return $res;
371  }
$value
Definition: gender.phtml:16
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getIterator()

getIterator ( )

Implementation of \IteratorAggregate::getIterator()

Returns
\ArrayIterator

Definition at line 830 of file Collection.php.

831  {
832  $this->load();
833  return new \ArrayIterator($this->_items);
834  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getLastItem()

getLastItem ( )

Retrieve collection last item

Returns
\Magento\Framework\DataObject

Definition at line 314 of file Collection.php.

315  {
316  $this->load();
317 
318  if (count($this->_items)) {
319  return end($this->_items);
320  }
321 
322  return $this->_entityFactory->create($this->_itemObjectClass);
323  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ getLastPageNumber()

getLastPageNumber ( )

Retrieve collection last page number

Returns
int

Definition at line 256 of file Collection.php.

257  {
258  $collectionSize = (int)$this->getSize();
259  if (0 === $collectionSize) {
260  return 1;
261  } elseif ($this->_pageSize) {
262  return ceil($collectionSize / $this->_pageSize);
263  } else {
264  return 1;
265  }
266  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17

◆ getNewEmptyItem()

getNewEmptyItem ( )

Retrieve collection empty item

Returns
\Magento\Framework\DataObject

Definition at line 620 of file Collection.php.

621  {
622  return $this->_entityFactory->create($this->_itemObjectClass);
623  }

◆ getPageSize()

getPageSize ( )

Retrieve collection page size

Returns
int

Definition at line 273 of file Collection.php.

274  {
275  return $this->_pageSize;
276  }

◆ getSize()

getSize ( )

Retrieve collection all items count

Returns
int

Definition at line 283 of file Collection.php.

284  {
285  $this->load();
286  if ($this->_totalRecords === null) {
287  $this->_totalRecords = count($this->getItems());
288  }
289  return intval($this->_totalRecords);
290  }
load($printQuery=false, $logQuery=false)
Definition: Collection.php:687

◆ hasFlag()

hasFlag (   $flag)

Has Flag

Parameters
string$flag
Returns
bool

Definition at line 877 of file Collection.php.

878  {
879  return array_key_exists($flag, $this->_flags);
880  }

◆ isLoaded()

isLoaded ( )

Retrieve collection loading status

Returns
bool

Definition at line 217 of file Collection.php.

◆ load()

load (   $printQuery = false,
  $logQuery = false 
)

Load data

Parameters
bool$printQuery
bool$logQuery
Returns
$this

Definition at line 687 of file Collection.php.

688  {
689  return $this->loadData($printQuery, $logQuery);
690  }
loadData($printQuery=false, $logQuery=false)
Definition: Collection.php:675

◆ loadData()

loadData (   $printQuery = false,
  $logQuery = false 
)

Load data

Parameters
bool$printQuery
bool$logQuery
Returns
$this @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 675 of file Collection.php.

676  {
677  return $this;
678  }

◆ loadWithFilter()

loadWithFilter (   $printQuery = false,
  $logQuery = false 
)

Load data with filter in place

Parameters
bool$printQuery
bool$logQuery
Returns
$this

Definition at line 699 of file Collection.php.

700  {
701  return $this->loadData($printQuery, $logQuery);
702  }
loadData($printQuery=false, $logQuery=false)
Definition: Collection.php:675

◆ removeAllItems()

removeAllItems ( )

Remove all items from collection

Returns
$this

Definition at line 472 of file Collection.php.

473  {
474  $this->_items = [];
475  return $this;
476  }

◆ removeItemByKey()

removeItemByKey (   $key)

Remove item from collection by item key

Parameters
mixed$key
Returns
$this

Definition at line 459 of file Collection.php.

460  {
461  if (isset($this->_items[$key])) {
462  unset($this->_items[$key]);
463  }
464  return $this;
465  }

◆ setCurPage()

setCurPage (   $page)

Set current page

Parameters
int$page
Returns
$this

Definition at line 568 of file Collection.php.

569  {
570  $this->_curPage = $page;
571  return $this;
572  }
$page
Definition: pages.php:8

◆ setDataToAll()

setDataToAll (   $key,
  $value = null 
)

Setting data for all collection items

Parameters
mixed$key
mixed$value
Returns
$this

Definition at line 548 of file Collection.php.

549  {
550  if (is_array($key)) {
551  foreach ($key as $k => $v) {
552  $this->setDataToAll($k, $v);
553  }
554  return $this;
555  }
556  foreach ($this->getItems() as $item) {
557  $item->setData($key, $value);
558  }
559  return $this;
560  }
$value
Definition: gender.phtml:16
setDataToAll($key, $value=null)
Definition: Collection.php:548

◆ setFlag()

setFlag (   $flag,
  $value = null 
)

Set Flag

Parameters
string$flag
bool | null$value
Returns
$this

Definition at line 865 of file Collection.php.

866  {
867  $this->_flags[$flag] = $value;
868  return $this;
869  }
$value
Definition: gender.phtml:16

◆ setItemObjectClass()

setItemObjectClass (   $className)

Set collection item class name

Parameters
string$className
Returns
$this
Exceptions

Definition at line 606 of file Collection.php.

607  {
608  if (!is_a($className, \Magento\Framework\DataObject::class, true)) {
609  throw new \InvalidArgumentException($className . ' does not extend \Magento\Framework\DataObject');
610  }
611  $this->_itemObjectClass = $className;
612  return $this;
613  }
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31

◆ setOrder()

setOrder (   $field,
  $direction = self::SORT_ORDER_DESC 
)

Set select order

Parameters
string$field
string$direction
Returns
$this

Definition at line 593 of file Collection.php.

594  {
595  $this->_orders[$field] = $direction;
596  return $this;
597  }

◆ setPageSize()

setPageSize (   $size)

Set collection page size

Parameters
int$size
Returns
$this

Definition at line 580 of file Collection.php.

581  {
582  $this->_pageSize = $size;
583  return $this;
584  }

◆ toArray()

toArray (   $arrRequiredFields = [])

Convert collection to array

Parameters
array$arrRequiredFields
Returns
array

Definition at line 732 of file Collection.php.

733  {
734  $arrItems = [];
735  $arrItems['totalRecords'] = $this->getSize();
736 
737  $arrItems['items'] = [];
738  foreach ($this as $item) {
739  $arrItems['items'][] = $item->toArray($arrRequiredFields);
740  }
741  return $arrItems;
742  }

◆ toOptionArray()

toOptionArray ( )
Returns
array

Implements OptionSourceInterface.

Definition at line 778 of file Collection.php.

779  {
780  return $this->_toOptionArray();
781  }
_toOptionArray($valueField='id', $labelField='name', $additional=[])
Definition: Collection.php:760

◆ toOptionHash()

toOptionHash ( )
Returns
array

Definition at line 786 of file Collection.php.

787  {
788  return $this->_toOptionHash();
789  }
_toOptionHash($valueField='id', $labelField='name')
Definition: Collection.php:801

◆ toXml()

toXml ( )

Convert collection to XML

Returns
string

Definition at line 709 of file Collection.php.

710  {
711  $xml = '<?xml version="1.0" encoding="UTF-8"?>
712  <collection>
713  <totalRecords>' .
714  $this->_totalRecords .
715  '</totalRecords>
716  <items>';
717 
718  foreach ($this as $item) {
719  $xml .= $item->toXml();
720  }
721  $xml .= '</items>
722  </collection>';
723  return $xml;
724  }

◆ walk()

walk (   $callback,
array  $args = [] 
)

Walk through the collection and run model method or external callback with optional arguments

Returns array with results of callback for each item

Parameters
callable$callback
array$args
Returns
array

Definition at line 500 of file Collection.php.

501  {
502  $results = [];
503  $useItemCallback = is_string($callback) && strpos($callback, '::') === false;
504  foreach ($this->getItems() as $id => $item) {
505  $params = $args;
506  if ($useItemCallback) {
507  $cb = [$item, $callback];
508  } else {
509  $cb = $callback;
510  array_unshift($params, $item);
511  }
512  $results[$id] = call_user_func_array($cb, $params);
513  }
514  return $results;
515  }
$results
Definition: popup.phtml:13
$id
Definition: fieldset.phtml:14
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18

Field Documentation

◆ $_curPage

$_curPage = 1
protected

Definition at line 65 of file Collection.php.

◆ $_entityFactory

$_entityFactory
protected

Definition at line 100 of file Collection.php.

◆ $_filters

$_filters = []
protected

Definition at line 51 of file Collection.php.

◆ $_flags

$_flags = []
protected

Definition at line 95 of file Collection.php.

◆ $_isCollectionLoaded

$_isCollectionLoaded
protected

Definition at line 88 of file Collection.php.

◆ $_isFiltersRendered

$_isFiltersRendered = false
protected

Definition at line 58 of file Collection.php.

◆ $_itemObjectClass

$_itemObjectClass = \Magento\Framework\DataObject::class
protected

Definition at line 37 of file Collection.php.

◆ $_items

$_items = []
protected

Definition at line 30 of file Collection.php.

◆ $_orders

$_orders = []
protected

Definition at line 44 of file Collection.php.

◆ $_pageSize

$_pageSize = false
protected

Definition at line 74 of file Collection.php.

◆ $_totalRecords

$_totalRecords
protected

Definition at line 81 of file Collection.php.

◆ SORT_ORDER_ASC

const SORT_ORDER_ASC = 'ASC'

Definition at line 21 of file Collection.php.

◆ SORT_ORDER_DESC

const SORT_ORDER_DESC = 'DESC'

Definition at line 23 of file Collection.php.


The documentation for this class was generated from the following file: