property = $this->getProperty($instance); return parent::__construct($data, $options); } /** * Property bein authored * * @return core_kernel_classes_Property */ protected function getPropertyInstance() { return $this->property; } /** * Initialize the form * * @access protected * @author Bertrand Chevrier, * @return mixed */ protected function initForm() { (isset($this->options['name'])) ? $name = $this->options['name'] : $name = ''; if (empty($name)) { $name = 'form_' . (count(self::$forms) + 1); } unset($this->options['name']); $this->index = array_key_exists('index', $this->options) ? $this->options['index'] : 1; $this->form = tao_helpers_form_FormFactory::getForm($name, $this->options); } /** * Returns if property is inherited or not for class * @return bool */ protected function isParentProperty() { return isset($this->options['isParentProperty']) && $this->options['isParentProperty']; } /** * Returns html for property * @param $property * @return string */ protected function getGroupTitle($property) { $setupIndexIcon = $this->options['disableIndexChanges'] ? '' : ' '; if ($this->isParentProperty()) { foreach ($property->getDomain()->getIterator() as $domain) { $domainLabel[] = $domain->getLabel(); } $groupTitle = '' . _dh($property->getLabel()) . '' . '' . _dh(implode(' ', $domainLabel)) . $setupIndexIcon . ' ' . ''; } else { $groupTitle = '' . _dh($property->getLabel()) . '' . '' . $setupIndexIcon . '' . 'getUri()) . '\'>' . ''; } return $groupTitle; } /** * @return int */ protected function getIndex() { return $this->index; } }