Exemplo n.º 1
0
 /**
  * Type as string
  * @return string
  */
 public final function typeString()
 {
     return PluginType::string($this->type());
 }
Exemplo n.º 2
0
 /**
  * Get plugins
  * @param mixed $type [optional] false or enum
  * @param mixed $active [optional] false or enum 
  * @return array array with plugin keys
  */
 protected function getPlugins($type = false, $active = false)
 {
     $keys = array();
     foreach (self::Plugins() as $plugin) {
         if (($type === false || $plugin['type'] == PluginType::string($type)) && ($active === false || $plugin['active'] == $active)) {
             $keys[] = $plugin['key'];
         }
     }
     return $keys;
 }