本文整理汇总了PHP中Base::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Base::render方法的具体用法?PHP Base::render怎么用?PHP Base::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base
的用法示例。
在下文中一共展示了Base::render方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* Return render value
* (non-PHPdoc)
* @see \Engine\Crud\Grid\Column::render()
* @param mixed $row
* @return string
*/
public function render($row)
{
$value = parent::render($row);
if ($value !== '') {
if (isset($this->_options[$value])) {
$value = $this->_options[$value];
}
} else {
$value = $this->_na;
}
return $value;
}
示例2: blockTagcloud
public static function blockTagcloud($taglist)
{
$max = current($taglist)['count'];
$min = end($taglist)['count'];
shuffle($taglist);
foreach ($taglist as &$tag) {
$size_factor = (\Config::instance()->tagcloud_spread - 1) / ($min == $max ? 1 : $max - $min) * ($tag['count'] - $min) + 1;
$tag['z_index'] = $max - $tag['count'];
$tag['percent'] = intval(\Config::instance()->tagcloud_basesize * $size_factor);
}
\Base::instance()->set('renderData', $taglist);
return parent::render('story/block.tagcloud.html');
}
示例3: categories
public static function categories($data)
{
$cell = array("ID" => "sb_cell_categories", "TITLE" => \Base::instance()->get("LN__Categories"), "CONTENT" => $data);
\Base::instance()->set('cell', $cell);
return parent::render('blocks/categories.html');
}
示例4: render
public function render($view, $data = [])
{
parent::render('app/' . $view, $data);
}