本文整理汇总了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);
}
示例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));
}
示例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();
}
示例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();
}
示例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() . "\"> " . Language::encodePair($this->getText()) . "</label>" : ""));
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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())));
}
}
}
示例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();
}
示例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;
}
示例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();
}