コード例 #1
0
ファイル: WContainer.php プロジェクト: point/cassea
 function generateAllHTML()
 {
     if (isset($this->str)) {
         if (($p = Controller::getInstance()->getWidget($this->parent_id)) instanceof iStringProcessable) {
             return StringProcessorFactory::create($p->getStringProcess())->process(Language::encodePair($this->str));
         } else {
             return Language::encodePair($this->str);
         }
     }
     return parent::generateAllHTML();
 }
コード例 #2
0
ファイル: WText.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if ($this->is_h) {
         $this->tpl->setParamsArray(array("heading" => $this->heading));
     }
     $this->tpl->setParamsArray(array('value' => StringProcessorFactory::create($this->getStringProcess())->process(Language::encodePair($this->text)), 'repeat_count' => $this->getRepeatCount()));
     parent::assignVars();
 }
コード例 #3
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();
 }
コード例 #4
0
ファイル: WListItem.php プロジェクト: point/cassea
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if (isset($this->text)) {
         $this->tpl->setParamsArray(array("text" => StringProcessorFactory::create($this->getStringProcess())->process(Language::encodePair($this->getText()))));
     } else {
         $this->tpl->setParamsArray(array("text" => Language::encodePair($this->items->generateAllHTML())));
     }
     parent::assignVars();
 }