Esempio n. 1
0
 public function init(array $data)
 {
     if (!empty($data)) {
         if (isset($data['eventClass'])) {
             $this->setEventClass($data['eventClass']);
         }
         if (isset($data['collection'])) {
             $this->setCollection($data['collection']);
         }
         if (isset($data['key'])) {
             $this->setKey($data['key']);
         }
         if (isset($data['type'])) {
             $this->setType($data['type']);
         }
         parent::init($data);
     }
     return $this;
 }
Esempio n. 2
0
 public function init(array $data)
 {
     if (!empty($data)) {
         if (isset($data['itemClass'])) {
             $this->setItemClass($data['itemClass']);
         }
         if (isset($data['eventClass'])) {
             $this->setEventClass($data['eventClass']);
         }
         if (isset($data['relationshipClass'])) {
             $this->setRelationshipClass($data['relationshipClass']);
         }
         if (isset($data['collection'])) {
             $this->setCollection($data['collection']);
         }
         parent::init($data);
     }
     return $this;
 }
 public function init(array $data)
 {
     if (!empty($data)) {
         if (isset($data['relationshipClass'])) {
             $this->setRelationshipClass($data['relationshipClass']);
         }
         if (isset($data['collection'])) {
             $this->setCollection($data['collection']);
         }
         if (isset($data['key'])) {
             $this->setKey($data['key']);
         }
         if (isset($data['depth'])) {
             $this->setDepth($data['depth']);
         }
         parent::init($data);
     }
     return $this;
 }