3 * The CategoryList control displays a summary of all categories in Vanilla.
5 * Copyright 2003 Mark O'Sullivan
6 * This file is part of Lussumo's Software Library.
7 * Lussumo's Software Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
8 * Lussumo's Software Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
9 * You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
10 * The latest source code is available at www.lussumo.com
11 * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
13 * @author Mark O'Sullivan
14 * @copyright 2003 Mark O'Sullivan
15 * @license http://lussumo.com/community/gpl.txt GPL 2
22 * Displays a category list.
25 class CategoryList
extends Control
{
28 function CategoryList(&$Context) {
29 $this->Name
= 'CategoryList';
30 $this->Control($Context);
31 $CategoryManager = $this->Context
->ObjectFactory
->NewContextObject($this->Context
, 'CategoryManager');
32 $this->Data
= $CategoryManager->GetCategories(1);
33 $this->CallDelegate('Constructor');
37 $this->CallDelegate('PreRender');
38 include(ThemeFilePath($this->Context
->Configuration
, 'categories.php'));
39 $this->CallDelegate('PostRender');