public function __construct(PropertyContainer $property_container, \Symforce\AdminBundle\Compiler\MetaType\Admin\Entity $entity, $property, \Symforce\AdminBundle\Compiler\Annotation\Annotation $annot = null) { $this->property_container = $property_container; $this->class_property = $property; $this->admin_object = $entity; if ($annot) { $this->setMyPropertie($annot); } $property_container->addProperty($this); }
/** * Get Selector of the subpalette * @return Property[]|void */ public function getSelector() { $arrSelectors = array(); foreach (parent::getSelectors() as $strName => $objProperty) { if (strpos($this->getName(), $strName) === 0) { $arrSelectors[$strName] = $objProperty; } } }
public function pushTo(PropertyContainer $container) { $property = $this->build(); $container->push($property); return $this; }
/** * Be sure to add our properties to the things to serialize * * @return array */ public function __sleep() { return array_merge(parent::__sleep(), array('labels')); }
/** * Be sure to add our properties to the things to serialize * * @return array */ public function __sleep() { return array_merge(parent::__sleep(), array('start', 'end', 'type')); }