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);
 }
Example #2
0
 /**
  * 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;
 }
Example #4
0
 /**
  * Be sure to add our properties to the things to serialize
  *
  * @return array
  */
 public function __sleep()
 {
     return array_merge(parent::__sleep(), array('labels'));
 }
Example #5
0
 /**
  * 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'));
 }