00001 <?php 00002 00015 import('lib.pkp.classes.controllers.grid.GridCellProvider'); 00016 00017 class CategoryListbuilderGridCellProvider extends GridCellProvider { 00021 function CategoryListbuilderGridCellProvider() { 00022 parent::GridCellProvider(); 00023 } 00024 00025 // 00026 // Template methods from GridCellProvider 00027 // 00036 function getTemplateVarsFromRowColumn(&$row, $column) { 00037 $category =& $row->getData(); 00038 $columnId = $column->getId(); 00039 assert((is_a($category, 'Category')) && !empty($columnId)); 00040 00041 return array('labelKey' => $category->getId(), 'label' => $category->getLocalizedTitle()); 00042 } 00043 } 00044 00045 ?>
1.7.1