/**
  * Set the static pages plugin.
  * @param $plugin StaticPagesPlugin
  */
 static function setPlugin($plugin)
 {
     self::$plugin = $plugin;
 }
Exemplo n.º 2
0
 /**
  * Permit requests to the VG Wort grid handler
  * @param $hookName string The name of the hook being invoked
  * @param $args array The parameters to the invoked hook
  */
 function setupGridHandler($hookName, $params)
 {
     $component =& $params[0];
     if ($component == 'plugins.generic.vgWort.controllers.grid.VGWortGridHandler') {
         // Allow the grid handler to get the plugin object
         import($component);
         VGWortGridHandler::setPlugin($this);
         return true;
     } else {
         if ($component == 'plugins.generic.vgWort.controllers.modal.VGWortCatalogEntryTabHandler') {
             // Allow the grid handler to get the plugin object
             import($component);
             VGWortCatalogEntryTabHandler::setPlugin($this);
             return true;
         }
     }
     return false;
 }