Exemplo n.º 1
0
 public static function setInstance($instance)
 {
     list($plugin_name, $applet_name) = explode('---', $instance->type);
     self::$instance = $instance->data;
     self::$id = $instance->id;
     self::$pluginName = $plugin_name;
     self::$appletName = $applet_name;
     self::$plugin = new Plugin(self::$pluginName);
     PluginData::setPluginId(self::$plugin->getPluginId());
 }