YANA 4 PHP FrameworkDocs For Class PluginManager

### Class PluginManager

#### Description

«Singleton» PluginManager

- name: pluginmanager
- access: public

Located in /includes/class_pluginmanager.php

    SerializeableObject
       |
       --Singleton
          |
          --PluginManager

#### Method Summary

string get (string $pluginName, string $key)
string getPluginDir ()
boolean handle (string $event, array $ARGUMENTS, [string $criteria = ""])
boolean isInstalled (string $pluginName)

#### Methods

##### get

string get (string $pluginName, string $key)

get a file from a virtual drive

Each plugin defines it's own virtual drive with files that are required for it to function as intended.

You may access the virtual drive of any plugin if you know the plugin's name $pluginName and the name $key of the file you want. This is usefull from plugins that extend the functionality of another.

- access: public

Name | Type | Description
--- | --- | ---
$pluginName | string |
$key | string |

##### getPluginDir

string getPluginDir ()

get the name of the directory where plugins are installed

- access: public

##### handle

boolean handle (string $event, array $ARGUMENTS, [string $criteria = ""])

broadcast an event to all plugins

- access: public

Name | Type | Description
--- | --- | ---
$event | string |
$ARGUMENTS | array |
$criteria | string | (optional)

##### isInstalled

boolean isInstalled (string $pluginName)

check if a specific plugin is installed

- access: public

Name | Type | Description
--- | --- | ---
$pluginName | string |

#### Inherited Methods

Inherited From Singleton

> Singleton::checkSingletonConstraint()

Inherited From SerializeableObject

> SerializeableObject::serialize()
> SerializeableObject::toString()

Documentation generated on Sat, 16 Sep 2006 17:06:01 +0200 by phpDocumentor 1.3.0RC4

yana author: Thomas Meyerwww.all-community.de/pub