在上一节中讲到了JCategories类的get方法将会返回所有的分类到一个JCategoryNode的对象中。在这一节中,我们将讨论一下JCategoryNode对象的使用方法。毕竟我们研究分类的目标是获得一个分类中所有的项目。

 

 

这个类中有几个属性比较有意义。

/**
	 * Number of items in this category or descendants of this category
	 *
	 * @var    integer
	 * @since  11.1
	 */
	public $numitems = null;

	/**
	 * Number of children items
	 *
	 * @var    integer
	 * @since  11.1
	 */
	public $childrennumitems = null;

 其中的几个方法介绍一下

 

 


收藏
0个人 收藏