Exemple #1
0
 public function __construct($totalResults = null, $startIndex = null, $itemsPerPage = null, array $entries = array())
 {
     parent::__construct($entries);
     $this->setTotalResults($totalResults);
     $this->setStartIndex($startIndex);
     $this->setItemsPerPage($itemsPerPage);
 }
Exemple #2
0
 public function __construct(array $array, $attributeName)
 {
     $this->setAttributeName($attributeName);
     parent::__construct($array);
 }
Exemple #3
0
 /**
  * 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);
 }