00001 <?php 00002 00015 import('lib.pkp.classes.controllers.grid.GridCategoryRow'); 00016 import('classes.file.LibraryFileManager'); 00017 00018 class LibraryFileGridCategoryRow extends GridCategoryRow { 00020 var $_context; 00021 00025 function LibraryFileGridCategoryRow($context) { 00026 $this->_context =& $context; 00027 parent::GridCategoryRow(); 00028 } 00029 00030 // 00031 // Overridden methods from GridCategoryRow 00032 // 00037 function getCategoryLabel() { 00038 $context =& $this->getContext(); 00039 $libraryFileManager = new LibraryFileManager($context->getId()); 00040 return __($libraryFileManager->getTitleKeyFromType($this->getData())); 00041 } 00042 00047 function getContext() { 00048 return $this->_context; 00049 } 00050 00054 function initialize($request) { 00055 parent::initialize($request); 00056 $this->setId($this->getData()); 00057 } 00058 } 00059 ?>
1.7.1