| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Defines a category in my profile page navigation.
| Copyright: | 2015 onwards Ankit Agarwal |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 199 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
category:: (6 methods):
__construct()
add_node()
sort_nodes()
validate_after_order()
find_nodes_after()
__get()
| __construct($name, $title, $after = null, $classes = null) X-Ref |
| Constructor for category class. param: string $name Category name. param: string $title category title. param: null|string $after Name of category after which this category should appear. param: null|string $classes a list of css classes. |
| add_node(node $node) X-Ref |
| Add a node to this category. param: node $node node object. |
| sort_nodes() X-Ref |
| Sort nodes of the category in the order in which they should be displayed. |
| validate_after_order() X-Ref |
| Verifies that node with content can come after node with content only . Also verifies the same thing for nodes without content. |
| find_nodes_after($node) X-Ref |
| Given a node object find all node objects that should appear after it. param: node $node node object return: array |
| __get($prop) X-Ref |
| Magic get method. param: string $prop property to get. return: mixed |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |