/** * @return string */ public function getFocusedObjectId($to_redesign = false) { if (is_object($this->active_mask)) { if ($to_redesign or $this->active_mask->isFocusToRedesign()) { return $this->active_mask->getFocusedObjectId(); } } return null; }
public function __construct() { parent::__construct(); $this->setTitle('Login'); $this->build('P4A_Field', 'username')->addAction('onreturnpress')->addAjaxAction('onreturnpress')->implement('onreturnpress', $this, 'login'); $this->build('P4A_Field', 'password')->setType('password')->addAjaxAction('onreturnpress')->implement('onreturnpress', $this, 'login'); $this->build('P4A_Button', 'go')->addAjaxAction('onclick')->implement('onclick', $this, 'login'); $this->build('P4A_Frame', 'frame')->setStyleProperty('margin-top', '50px')->setStyleProperty('margin-bottom', '50px')->anchor($this->username)->anchor($this->password)->anchorCenter($this->go); $this->display('main', $this->frame)->setFocus($this->username); }
public function __construct() { parent::__construct(); $this->build('P4A_Frame', 'frame'); $this->display('main', $this->frame); }
public function main() { parent::main(); P4A::singleton()->close(); }
function main() { $this->display("main", $this->raw_html); parent::main(); }