• Main Page
  • Modules
  • Classes
  • Files
  • File List

controllers/grid/files/LibraryFileGridCategoryRow.inc.php

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 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1