コード例 #1
0
 function initialize()
 {
     /* @var $model \Manager\AuthPage */
     $model = $this->getModel();
     $this->_usernameView = new EditorStringView($model->getUsername(), $this, "username");
     $this->_passwordView = new EditorPasswordView($model->getPassword(), $this, "password");
     $this->_authenticationView = new SubmitView("OK", $this, "authentication");
     $this->_authenticationView->click = array($this, "authenticationView_click");
     parent::initialize();
 }
コード例 #2
0
 function initialize()
 {
     /* @var $model \CallStatistic\Manager\MainPage */
     $model = $this->getModel();
     $nothing = null;
     $this->_fromView = new EditorDateView($model->from, $this, "from");
     $this->_toView = new EditorDateView($model->to, $this, "to");
     $this->_autoreloadDelayView = new ComboboxView($model->getAutoReloadDelay(), $this, "autoreloadDelay");
     $this->_autoreloadDelayView->options = ["60000" => "1 мин", "300000" => "5 мин", "900000" => "15 мин"];
     $this->_intervalView = new \Page\View\ComboboxView($model->getInterval(), $this, "interval");
     $this->_intervalView->options = array("300" => "5 мин", "900" => "15 мин", "3600" => "1 час", "86400" => "1 день");
     $this->_goView = new SubmitView("Показать", $this, "go");
     $this->_goView->click = array($this, "goView_click");
     parent::initialize();
 }