/**
  * @see PKPHandler::initialize()
  */
 function initialize(&$request, $args = null)
 {
     parent::initialize($request, $args);
     // Load grid-specific translations
     AppLocale::requireComponents(array(LOCALE_COMPONENT_PKP_GRID, LOCALE_COMPONENT_APPLICATION_COMMON));
 }
Example #2
0
 /**
  * @see PKPHandler::initialize()
  * @param $request PKPRequest
  * @param $args array optional
  */
 function initialize($request, $args = null)
 {
     parent::initialize($request, $args);
     // Load grid-specific translations
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_GRID, LOCALE_COMPONENT_APP_COMMON);
     // Give a chance to grid add features before calling hooks.
     // Because we must control when features are added to a grid,
     // this is the only place that should use the _addFeature() method.
     $this->_addFeatures($this->initFeatures($request, $args));
     $this->callFeaturesHook('gridInitialize', array('grid' => &$this));
 }
Example #3
0
 /**
  * @see PKPHandler::initialize()
  * @param $request PKPRequest
  * @param $args array optional
  */
 function initialize($request, $args = null)
 {
     parent::initialize($request, $args);
     // Load grid-specific translations
     AppLocale::requireComponents(LOCALE_COMPONENT_PKP_GRID, LOCALE_COMPONENT_APP_COMMON);
     if ($this->getFilterForm() && $this->isFilterFormCollapsible()) {
         import('lib.pkp.classes.linkAction.request.NullAction');
         $this->addAction(new LinkAction('search', new NullAction(), __('common.search'), 'search_extras_expand'));
     }
     // Give a chance to grid add features before calling hooks.
     // Because we must control when features are added to a grid,
     // this is the only place that should use the _addFeature() method.
     $this->_addFeatures($this->initFeatures($request, $args));
     $this->callFeaturesHook('gridInitialize', array('grid' => &$this));
 }
Example #4
0
 /**
  * @see PKPHandler::initialize()
  * @param $request PKPRequest
  */
 function initialize(&$request)
 {
     parent::initialize($request);
     // Load grid-specific translations
     Locale::requireComponents(array(LOCALE_COMPONENT_PKP_GRID));
 }