コード例 #1
0
ファイル: WSelectOption.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("text" => Language::encodePair($this->getText()), "value" => Language::encodePair($this->getValue()), "selected" => $this->getSelected() ? "selected=\"1\"" : ""));
     parent::assignVars();
 }
コード例 #2
0
ファイル: WImage.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("alt" => Language::encodePair($this->getAlt()), "width" => $this->getWidth() ? ' width="' . $this->getWidth() . '"' : '', "height" => $this->getHeight() ? ' height="' . $this->getHeight() . '"' : '', "src" => $this->getSrc(), 'preview' => $this->getWithPreview()));
     parent::assignVars();
 }
コード例 #3
0
ファイル: WNavigator.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $l = array_slice($this->steps, -1, 1);
     $l = $l[0];
     $this->tpl->setParams(t(new TemplateParams())->set('steps', array_slice($this->steps, 0, -1))->set('last_step', $l));
     parent::assignVars();
 }
コード例 #4
0
ファイル: WCSS.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if (isset($this->text)) {
         $this->tpl->setParamsArray(array("content" => $this->getText(), "media" => $this->getMedia(), "condition" => $this->getCond()));
     }
     parent::assignVars();
 }
コード例 #5
0
ファイル: WJSON.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("var" => json_encode($this->getVar())));
     parent::assignVars();
 }
コード例 #6
0
ファイル: WInlineScript.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array('code' => $this->getUseLang() ? Language::encodePair($this->getCode()) : $this->getCode(), "condition" => $this->getCond()));
     parent::assignVars();
 }
コード例 #7
0
ファイル: WControl.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("name" => isset($this->additional_id) ? $this->getName() . '[' . $this->additional_id . ']' . ($this->name_w_braces ? "[]" : "") : $this->getName() . ($this->name_w_braces ? "[]" : ""), "value" => Language::encodePair($this->getValue()), "readonly" => $this->getReadonly() ? 'readonly="' . $this->getReadonly() . '"' : '', "disabled" => $this->getDisabled() ? 'disabled="' . $this->getDisabled() . '"' : '', "tabindex" => $this->getTabIndex() ? 'tabindex="' . $this->getTabIndex() . '"' : ''));
     if ($this instanceof iStringProcessable) {
         $this->tpl->setParams(t(new TemplateParams())->set('value', StringProcessorFactory::create($this->getStringProcess())->process(Language::encodePair($this->getValue()))));
     } else {
         $this->tpl->setParams(t(new TemplateParams())->set('value', Language::encodePair($this->getValue())));
     }
     if (isset($this->filter_error_string)) {
         $this->tpl->setParamsArray(array("error_string" => "<span class=\"w-error\">" . Language::encodePair($this->getFilterError()) . "</span>"));
     }
     parent::assignVars();
 }
コード例 #8
0
ファイル: WFlash.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("width" => $this->getWidth(), "height" => $this->getHeight(), "src" => $this->getSrc(), 'bgcolor' => $this->getBgColor()));
     parent::assignVars();
 }
コード例 #9
0
ファイル: WHTML.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("content" => $this->page_text));
     parent::assignVars();
 }