コード例 #1
0
 public function onCreate()
 {
     parent::onCreate();
     $this->checked = false;
     $this->setText('');
     $this->setRender('inputcheck');
 }
コード例 #2
0
ファイル: mprompt.php プロジェクト: joshuacoddingyou/php
 /**
  * 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;
 }
コード例 #3
0
ファイル: mselection.php プロジェクト: joshuacoddingyou/php
 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');
 }
コード例 #4
0
ファイル: miframe.php プロジェクト: joshuacoddingyou/php
 public function onCreate()
 {
     parent::onCreate();
     $this->setRender('iframe');
 }
コード例 #5
0
ファイル: mtextfield.php プロジェクト: joshuacoddingyou/php
 public function onCreate()
 {
     parent::onCreate();
     $this->type = 'text';
     $this->setRender('inputtext');
 }
コード例 #6
0
ファイル: minputfield.php プロジェクト: joshuacoddingyou/php
 public function onCreate()
 {
     parent::onCreate();
     $this->typeClasses = array("date" => "MCalendarField", "spinner" => "MNumberSpinner");
     $this->set = new stdClass();
 }