Esempio n. 1
0
 public function isInstanceOfTypeTemplate(Blerby_Entity_Component $template)
 {
     if ($template->parent() instanceof Blerby_Entity_Type && $template->uri === $this->uri && $template->name === $this->name) {
         return true;
     }
     return false;
 }
Esempio n. 2
0
 public function componentFromPart($part)
 {
     print_r($this);
     exit;
     foreach ($this->type->config->toArray() as $aComponent) {
         if ($part == $aComponent->part) {
             $ret = Blerby_Entity_Component::factory($aComponent->uri);
             $ret->fromArray($aComponent);
             return $ret;
         }
     }
 }