Example #1
0
    public function getParam($key)
    {
        return $this->params[$key];
    }
    /**
     * used by the page Controler
     * must NOT be used by plugins
     * 
     * Note: The Controler should not compute/provide all the data that *may* be used
     * by plugins as it does not know which data will be used.
     * so this method should only be used by the Controler if:
     * - this data will certainly be used
     * - providing the data is not time/CPU consuming
     * ex: CommandName
     * 
     * The controler should provide methods that will get the data on demand,
     * and these methods will be called by the PluginDataProvider.
     * 
     * @param type $key
     * @param type $value
     * @return \IndicatorPluginManager
     */
    public function setParam($key, $value)
    {
        $this->params[$key] = $value;
        return $this;
    }
}
// Initialize complex static variables
PluginDataProvider::staticInit();