本文整理汇总了PHP中Entry::buildXHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP Entry::buildXHTML方法的具体用法?PHP Entry::buildXHTML怎么用?PHP Entry::buildXHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entry
的用法示例。
在下文中一共展示了Entry::buildXHTML方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildXHTML
/**
* Prepares the XHTML data
*
* @access public
*/
function buildXHTML()
{
parent::buildXHTML();
$this->_XHTML .= '<div id="' . $this->_id . '_autocomplete_choices" class="autocomplete"></div>';
$this->_XHTML .= "\n";
$this->_XHTML .= "<script type=\"text/javascript\">\n";
$this->_XHTML .= " new Ajax.Autocompleter(\"" . $this->_id . "\", \"" . $this->_id . "_autocomplete_choices\", ";
$this->_XHTML .= "\"" . $this->_url . "\", {paramName: \"value\", ";
if (!empty($this->_updateFunction)) {
$this->_XHTML .= 'updateElement: ' . $this->_updateFunction . ', ';
}
$this->_XHTML .= "minChars: 3});\n";
$this->_XHTML .= "</script>\n";
}
示例2: buildXHTML
/**
* Build the XHTML data
*
* @access private
*/
function buildXHTML()
{
$this->addFile(PIWI_URL . 'piwidata/js/calendar.js');
$this->addEvent(new JSEvent(ON_FOCUS, "popUpCalendar(this, this, 'dd/mm/yyyy', " . $this->_displayToday . ", " . $this->_displayWeek . ", " . $this->_startDay . ")"));
$this->addEvent(new JSEvent(ON_FOCUS, "this.blur()"));
$this->setReadOnly(true);
parent::buildXHTML();
}