public function __construct(array $options = array()) { parent::__construct($options); if ($this->isSubmit()) { $this->login(); } }
public function __construct(array $options = array()) { parent::__construct($options); }
public function __construct(array $options = array()) { parent::__construct($options); $this->changeRole(); $this->loadAllUsers(); }
public function __construct(array $options = array()) { parent::__construct($options); $this->prepare(); }
public function __construct(array $options = array()) { parent::__construct($options); $this->loadConfiguration(); }
$this->delegateGetter($object, 'name', 'getName'); $this->delegateSetter($object, 'name', 'setName'); $this->delegate($object, 'scream'); } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function scream() { d('...woro'); } } class SomeModel extends DObject { public function __construct() { $this->plugin('SomePlugin'); } } $s = new SomeModel(); echo 'name : ', $s->name, '<br />'; $s->name = 'change 1'; echo 'name : ', $s->name, '<br />'; $s->name = 'change 2'; echo 'name : ', $s->name, '<br />'; $s->scream();
function init() { parent::init(); $this->getField('name')->type('text')->allowHtml(true); $this->addField('email')->refModel('Model_Filestore_File')->type('file')->display('upload'); }