/** * Get activated * * @param Property $objProperty * @param ModelInterface $objModel * * @return Definition\SubPalette|null */ public static function getActivePropertySubPalette(Property $objProperty, ModelInterface $objModel) { $objProperty->getDataContainer(); $varValue = $objModel->getProperty($objProperty->getName()); if ($objProperty->hasSubPalette($varValue)) { return $objProperty->getSubPalette($varValue); } return null; }
/** * (PHP 5 >= 5.1.0)<br/> * Returns an iterator for the current entry. * @link http://php.net/manual/en/recursiveiterator.getchildren.php * @return RecursiveIterator An iterator for the current entry. */ public function getChildren() { $objProperty = $this->current(); $varValue = $this->objModel->getProperty($objProperty->getName()); return new ActivePropertyContainer($objProperty->getSubPalette($varValue), $this->objModel); }