本文整理汇总了PHP中CTag::getTree方法的典型用法代码示例。如果您正苦于以下问题:PHP CTag::getTree方法的具体用法?PHP CTag::getTree怎么用?PHP CTag::getTree使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTag
的用法示例。
在下文中一共展示了CTag::getTree方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CSmartyDP
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkRead();
$object_class = CValue::get("object_class");
$tree = CTag::getTree($object_class);
$smarty = new CSmartyDP("modules/system");
$smarty->assign("object_class", $object_class);
$smarty->assign("tree", $tree);
$smarty->assign("root", true);
$smarty->display("vw_object_tag_manager.tpl");
示例2: getTreeGeneric
/**
* Returns the tag items tree with all the favoris
*
* @param int $user_id User id
* @param string $favori_class Favori class name (CFavoriCCAM or CFavoriCIM10)
*
* @return array
*/
static function getTreeGeneric($user_id, $favori_class)
{
$tree = CTag::getTree($favori_class);
self::getFavorisTree($tree, $user_id, $favori_class);
return $tree;
}
示例3: CTag
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$object_class = CValue::get("object_class");
$parent_tag_id = CValue::get("parent_tag_id");
$columns = CValue::get("col");
$group_id = CValue::get("group_id");
$parent_tag = new CTag();
$parent_tag->load($parent_tag_id);
$tree = CTag::getTree($object_class, $parent_tag);
$smarty = new CSmartyDP();
$smarty->assign("tree", $tree);
$smarty->assign("object_class", $object_class);
$smarty->assign("parent_tag", $parent_tag);
$smarty->assign("root", !$parent_tag->_id);
$smarty->assign("columns", $columns);
$smarty->assign("group_id", $group_id);
$smarty->display("inc_object_tag_tree.tpl");