/**
  * Set the plugin property to point to the primary plugin object.
  *
  * Returns false if we can't get to the main plugin object.
  *
  * @global wpCSL_plugin__slplus $slplus_plugin
  * @return boolean true if plugin property is valid
  */
 function setPlugin()
 {
     if (!isset($this->plugin) || $this->plugin == null) {
         global $slplus_plugin;
         $this->plugin = $slplus_plugin;
         $this->plugin->register_module($this->name, $this);
     }
     return isset($this->plugin) && $this->plugin != null;
 }
Beispiel #2
0
 /**
  * Instantiate the UI Class.
  *
  * @param mixed[] $params
  */
 function __construct($params = null)
 {
     $this->name = 'UI';
     // Do the setting override or initial settings.
     //
     if ($params != null) {
         foreach ($params as $name => $sl_value) {
             $this->{$name} = $sl_value;
         }
     }
     $this->slplus->register_module($this->name, $this);
 }
 /**
  * The Constructor
  */
 function __construct($params = null)
 {
     $this->name = 'AjaxHandler';
     // Set slplus property
     //
     if (!isset($this->slplus) || $this->slplus == null) {
         global $slplus_plugin;
         $this->slplus = $slplus_plugin;
         $this->slplus->register_module($this->name, $this);
         $this->plugin = $this->slplus;
     }
     $this->slplus->notifications->enabled = false;
     // Set incoming params
     //
     $this->set_QueryParams();
 }