示例#1
0
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     if ($this->isSubmit()) {
         $this->login();
     }
 }
示例#2
0
 public function __construct(array $options = array())
 {
     parent::__construct($options);
 }
示例#3
0
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->changeRole();
     $this->loadAllUsers();
 }
示例#4
0
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->prepare();
 }
示例#5
0
 public function __construct(array $options = array())
 {
     parent::__construct($options);
     $this->loadConfiguration();
 }
示例#6
0
        $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();
示例#7
0
 function init()
 {
     parent::init();
     $this->getField('name')->type('text')->allowHtml(true);
     $this->addField('email')->refModel('Model_Filestore_File')->type('file')->display('upload');
 }