public function onCreate() { parent::onCreate(); $this->checked = false; $this->setText(''); $this->setRender('inputcheck'); }
/** * This is the constructor of the class. * Use the setType method to specify the type of the dialog. * * @see setType * * @param (string) $caption Title of the box * @param (string) $message Message for the prompt message * @param (string) $icon css class icon * * @example * \code * $dialog = new MPrompt('Information', 'Maestro is a nice framework :-)' ); * \endcode * * @return (void) */ public function onCreate() { parent::onCreate(); $this->defaultCaption[MPrompt::MSG_TYPE_INFORMATION] = _M('Informação'); $this->defaultCaption[MPrompt::MSG_TYPE_ERROR] = _M('Erro'); $this->defaultCaption[MPrompt::MSG_TYPE_CONFIRMATION] = _M('Confirmação'); $this->defaultCaption[MPrompt::MSG_TYPE_QUESTION] = _M('Questão'); $this->defaultCaption[MPrompt::MSG_TYPE_ALERT] = _M('Alerta'); $this->type = MPrompt::MSG_TYPE_PROMPT; }
public function onCreate() { parent::onCreate(); $this->type = 'filter'; $this->autoPostBack = false; $this->list = new MListControl($this->id); $this->required = false; $this->setOptions(array()); $this->setShowValues(false); $this->setRender('select'); }
public function onCreate() { parent::onCreate(); $this->setRender('iframe'); }
public function onCreate() { parent::onCreate(); $this->type = 'text'; $this->setRender('inputtext'); }
public function onCreate() { parent::onCreate(); $this->typeClasses = array("date" => "MCalendarField", "spinner" => "MNumberSpinner"); $this->set = new stdClass(); }