public function __construct($isJavascript = true) { parent::__construct(); $this->isJavascript = $isJavascript; $this->isSomethingEmpty = false; $this->addSuccess = false; $pane = isset($_GET['p']) ? $_GET['p'] : ''; $this->pane = $pane != self::SEE && $pane != self::ABOUT && $pane != self::ADD ? self::OPEN : $pane; $this->inputs = array('dbid' => array('text', self::PLACEHOLDER_ID, null, null), 'mainPwd' => array('password', self::PLACEHOLDER_PWD, null, null), 'usePwdForCK' => array('checkbox', 'value="1"', null, null), 'openPwd1' => array('password', self::PLACEHOLDER_PWD, null, null), 'addDbid' => array('text', self::PLACEHOLDER_ID, null, null), 'addMainPwd' => array('password', self::PLACEHOLDER_PWD, null, null), 'addKdbxFile' => array('file', null, null, null), 'addUsePwdForCK' => array('checkbox', 'value="1"', null, null), 'addPwd1' => array('password', self::PLACEHOLDER_PWD, null, null), 'addFile1' => array('file', null, null, null)); }
public function __construct($defaultResult = self::FAIL) { parent::__construct(); $this->result = $defaultResult; $this->html = ""; }