コード例 #1
0
ファイル: WButton.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("src" => $this->getSrc(), "type" => $this->getType(), "alt" => $this->getAlt()));
     parent::assignVars();
 }
コード例 #2
0
ファイル: WTextarea.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("cols" => $this->getCols(), "rows" => $this->getRows()));
     parent::assignVars();
 }
コード例 #3
0
ファイル: WRadio.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     parent::assignVars();
     $this->tpl->setParamsArray(array("checked" => $this->getChecked() ? "checked=\"1\"" : "", "label" => !empty($this->text) ? "<label for=\"" . $this->getHTMLId() . "\">&nbsp;" . Language::encodePair($this->getText()) . "</label>" : ""));
 }
コード例 #4
0
ファイル: WFile.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("size" => $this->getSize(), 'max_file_size' => $this->getMaxFileSize()));
     parent::assignVars();
 }
コード例 #5
0
ファイル: WEdit.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("default" => $this->getDefault(), "type" => $this->getType(), "maxlength" => $this->getMaxLength(), "size" => $this->getSize(), "key_title" => Language::message("widgets", "edit_key_title")));
     parent::assignVars();
 }
コード例 #6
0
ファイル: WCheckbox.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     //move to messageInterchange
     if (!isset($this->text)) {
         $this->setText($this->getValue());
     }
     if (empty($this->value) && !is_numeric($this->value)) {
         $this->setValue('checkbox');
     }
     $this->tpl->setParamsArray(array("text" => Language::encodePair($this->getText()), "checked" => $this->getChecked() ? 'checked="1"' : ''));
     parent::assignVars();
 }