⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menuentry.class.php

📁 一个用PHP编写的
💻 PHP
字号:
<?php	lt_include( PLOG_CLASS_PATH."class/xml/tree/Node.php" );        /**      * \ingroup Template     *     * Wraps around an XML_Tree_Node object to represent a node from the     * menu tree     */    class MenuEntry extends XML_Tree_Node    {               /**         * constructor         *         * @param entryId The name of the node/menu entry         * @param entryAttrs an array containing the attributes of the menu entry (locale id,         * use bread&crumbs, etc)         */         function MenuEntry( $entryId, $entryAttrs = Array())         {            $this->XML_Tree_Node( $entryId, '', $entryAttrs );        }                /**         * adds a subentry. Reimplemented from XML_Tree_Node, it seems to behave a bit weird...         *         * @param entry         * @return Returns true if successful or false otherwise         */        function addEntry( &$entry, $entryOrder = -1 )        {            // calculate the right position            if ($entryOrder < 0) {                $entryOrder = count($this->children);            }                        // and then simply add the node            $this->children[$entryOrder] = &$entry;        }    }?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -