Ejemplo n.º 1
0
 /**
  * @return Modulo
  */
 public function getModule()
 {
     if (!$this->module) {
         $this->module = new Modulo();
         $this->module->setChave($this->key);
         $this->module->setTipo((int) Arrays::value($this->data, 'type', 0));
         $this->module->setNome(_(Arrays::value($this->data, 'name')));
         $this->module->setDescricao(_(Arrays::value($this->data, 'description')));
         $this->module->setStatus(0);
     }
     return $this->module;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function setNome($nome)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNome', array($nome));
     return parent::setNome($nome);
 }