本文整理汇总了PHP中server_component_tag::post_generate方法的典型用法代码示例。如果您正苦于以下问题:PHP server_component_tag::post_generate方法的具体用法?PHP server_component_tag::post_generate怎么用?PHP server_component_tag::post_generate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类server_component_tag
的用法示例。
在下文中一共展示了server_component_tag::post_generate方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
*
* @param code $ _writer
* @return void
* @access protected
*/
function post_generate(&$code)
{
$code->write_php($this->get_component_ref_code() . '->cache(ob_get_contents());ob_end_clean();');
$code->write_php('}');
$code->write_php($this->get_component_ref_code() . '->render();');
parent::post_generate($code);
}
示例2:
/**
* Writes the closing tag string to the compiled template
*
* @param code $ _writer
* @return void
* @access protected
*/
function post_generate(&$code)
{
if ($this->has_closing_tag) {
$code->write_html('</' . $this->get_rendered_tag() . '>');
}
parent::post_generate($code);
}
示例3:
/**
*
* @param code $ _writer
* @return void
* @access protected
*/
function post_generate(&$code)
{
if (!$this->hide_for_current_page) {
$parent =& $this->find_parent_by_class('pager_navigator_tag');
$code->write_php('if (!' . $parent->get_component_ref_code() . '->is_last()) {');
}
parent::post_generate($code);
$code->write_php('}');
}
示例4:
function post_generate(&$code)
{
$code->write_php('} else {');
if ($default =& $this->find_immediate_child_by_class('grid_default_tag')) {
$default->generate_now($code);
}
$code->write_php('}');
parent::post_generate($code);
}
示例5:
/**
*
* @param code $ _writer
* @return void
* @access protected
*/
function post_generate(&$code)
{
$code->write_php('}');
$emptychild =& $this->find_immediate_child_by_class('list_default_tag');
if ($emptychild) {
$code->write_php(' else {');
$emptychild->generate_now($code);
$code->write_php('}');
}
parent::post_generate($code);
}
示例6:
function post_generate(&$code)
{
$code->write_php('} else {');
if ($default = &$this->find_immediate_child_by_class('grid_default_tag'))
$default->generate_now($code);
$code->write_php('}');
if ($this->has_form)
{
$code->write_html('</form>');
}
parent :: post_generate($code);
}
示例7:
function post_generate(&$code)
{
$code->write_php('}');
parent :: post_generate($code);
}
示例8:
function post_generate(&$code)
{
parent :: post_generate($code);
}