当前位置: 首页>>代码示例>>PHP>>正文


PHP Language::encodePair方法代码示例

本文整理汇总了PHP中Language::encodePair方法的典型用法代码示例。如果您正苦于以下问题:PHP Language::encodePair方法的具体用法?PHP Language::encodePair怎么用?PHP Language::encodePair使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Language的用法示例。


在下文中一共展示了Language::encodePair方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setData

 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $h = Header::get();
     $h->setTitleSeparator(Language::encodePair($data->get('separator')));
     $h->setTitleStart(Language::encodePair($data->get('start')));
     $h->setTitleEnd(Language::encodePair($data->get('end')));
     if ($data->get('add')) {
         $h->addTitleItem(Language::encodePair($data->get('add')));
     }
     parent::setData($data);
 }
开发者ID:point,项目名称:cassea,代码行数:18,代码来源:WPageTitle.php

示例2: setText

 /**
  * Method description
  *
  * More detailed method description
  * @param    string $text
  * @return   void
  */
 function setText($text)
 {
     if (!isset($text) || !is_scalar($text)) {
         return;
     }
     $this->text = $text;
     $controller = Controller::getInstance();
     $controller->getNavigator()->setTitle(0, Language::encodePair($this->text));
 }
开发者ID:point,项目名称:cassea,代码行数:16,代码来源:WNavigator.php

示例3: assignVars

 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("legend" => Language::encodePair($this->getLegend()), "fieldset_content" => $this->items->generateAllHTML()));
     parent::assignVars();
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WFieldSet.php

示例4: generateAllHTML

 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();
 }
开发者ID:point,项目名称:cassea,代码行数:11,代码来源:WContainer.php

示例5: assignVars

 /**
  * 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>" : ""));
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WRadio.php

示例6: assignVars

 /**
  * 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();
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WInlineScript.php

示例7: assignVars

 /**
  * 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();
 }
开发者ID:point,项目名称:cassea,代码行数:19,代码来源:WCheckbox.php

示例8: assignVars

 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("action" => $this->getAction(), "enctype" => $this->getEnctype(), "method" => $this->getMethod(), "form_content" => $this->items->generateAllHTML(), "vc_rules" => !empty($this->vc_rules) ? implode(", ", $this->vc_rules) : null, "vc_messages" => !empty($this->vc_messages) ? Language::encodePair(implode(", ", $this->vc_messages)) : null, "signature" => $this->getMethod() != "post" ? null : $this->form_signature, "signature_name" => $this->getMethod() != "post" ? null : self::signature_name, "widget_id" => $this->getId()));
     parent::assignVars();
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WForm.php

示例9: assignVars

 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("step" => $this->getStep(), "min" => $this->getMin(), "max" => $this->getMax(), "text" => Language::encodePair($this->getText())));
     parent::assignVars();
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WSpinner.php

示例10: assignVars

 /**
  * 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();
 }
开发者ID:point,项目名称:cassea,代码行数:15,代码来源:WText.php

示例11: assignVars

 /**
  * 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();
 }
开发者ID:point,项目名称:cassea,代码行数:16,代码来源:WListItem.php

示例12: assignVars

    /**
     * method description
     *
     * more detailed method description
     * @param    string $tooltip
     * @return   void
     */
    function assignVars()
    {
        if (!$this->getState()) {
            return;
        }
        //TODO rework this part
        if (!empty($this->html_id)) {
            $final_html_id = $this->getHTMLId();
        }
        if ($this->inside_roll || $this->do_increment) {
            //$final_html_id = ltrim($this->id,"_")."_".$this->add_html_id;
            //$this->setHTMLId($final_html_id);
            $this->setHTMLId($final_html_id = $this->html_id . "_" . $this->add_html_id);
        }
        /*else 
        		{
        			$final_html_id = ltrim($this->id,"_");
        			$this->setHTMLId($final_html_id);
        		}*/
        if (isset($this->tooltip)) {
            $html_id = $this->getHTMLId();
            $js = <<<EOD
\$(document).ready(function(){
\t\$('#{$html_id}').tooltip({track: true,delay: 0,showURL: false,showBody:false,opacity: 0.85 });
});
EOD;
            $this->javascript->addBeforeWidget($js);
            $this->setTitle($this->getTooltip());
        }
        if (isset($this->tpl)) {
            $this->tpl->setParamsArray(array("title" => isset($this->title) ? " title=\"" . Language::encodePair($this->getTitle()) . "\" " : "", "id" => $this->getHTMLId()));
            if (!empty($this->style_class)) {
                $this->tpl->setParamsArray(array("class" => " class=\"" . $this->getStyleClass() . "\" "));
            }
            if (isset($this->style) && !$this->style->isEmpty()) {
                $this->tpl->setParamsArray(array("style" => " style=\"" . $this->style->generateStyle() . "\" "));
            }
            if (!empty($this->javascript)) {
                $this->tpl->setParamsArray(array("javascript" => Language::encodePair(" " . $this->javascript->generateJS()), "javascript_before" => Language::encodePair($this->javascript->getBeforeWidget()), "javascript_after" => Language::encodePair($this->javascript->getAfterWidget())));
            }
        }
    }
开发者ID:point,项目名称:cassea,代码行数:49,代码来源:WComponent.php

示例13: assignVars

 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $hrefs = array();
     $titles = array();
     $selected = -1;
     for ($i = 0, $c = $this->tabs->count(); $i < $c; $i++) {
         if ($this->tabs->getItem($i)->getHref()) {
             $hrefs[$i] = $this->tabs->getItem($i)->getHref();
         } else {
             $hrefs[$i] = "#" . $this->tabs->getItem($i)->getHTMLId();
         }
         $titles[$i] = Language::encodePair($this->tabs->getItem($i)->getTabTitle());
         if ($this->tabs->getItem($i)->getSelected()) {
             $selected = $i;
         }
     }
     $this->tpl->setParams(t(new TemplateParams())->set("href", $hrefs)->set("title", $titles)->set("tabs", $this->tabs->generateAllHTML())->set('selected', $selected));
     parent::assignVars();
 }
开发者ID:point,项目名称:cassea,代码行数:26,代码来源:WTabs.php

示例14: addNotify

 public function addNotify($text)
 {
     if (!is_object($this->notifyStorage)) {
         $this->notifyStorage = Storage::createWithSession('ControllerNotify');
     }
     $notes = $this->notifyStorage['notify'];
     $notes[] = Language::encodePair($text);
     $this->notifyStorage['notify'] = $notes;
 }
开发者ID:point,项目名称:cassea,代码行数:9,代码来源:Controller.php

示例15: assignVars

 /**
  * 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();
 }
开发者ID:point,项目名称:cassea,代码行数:12,代码来源:WSelectOption.php


注:本文中的Language::encodePair方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。