/** Fill collection with data */ public function fill() { // Perform CMS request to get tours if (CMS::getMaterialsByStructures($this->structures, $this->collection, $this->entityName, $this->outerDBHandlers, array(), $this->innerDBHandlers)) { // Handle success result } return $this->collection; }
/** * Get all materials related to current navigation * @return Material[] Collection of related materials * @deprecated Will be removed in nex major version */ public function &materials() { /** @var Material[] $materials Get related materials collection */ $materials = array(); // Perform generic material retrieval if (CMS::getMaterialsByStructures(array($this->id), $materials, 'samson\\cms\\CMSMaterial', null, array(), array($this, 'materialsHandlers'))) { // Handle } return $materials; }