public function __construct($totalResults = null, $startIndex = null, $itemsPerPage = null, array $entries = array()) { parent::__construct($entries); $this->setTotalResults($totalResults); $this->setStartIndex($startIndex); $this->setItemsPerPage($itemsPerPage); }
public function __construct(array $array, $attributeName) { $this->setAttributeName($attributeName); parent::__construct($array); }
/** * Constructor * * @param array $collection Collection * @param string $attribute_property Name of the attribute property * @param string $value_property Name of the value property * @return AttributeCollection * @access public */ public function __construct(array $collection, $attribute_property, $value_property) { $this->attribute_field = $attribute_property; $this->value_field = $value_property; parent::__construct($collection); }