| | 17 | /** |
|---|
| | 18 | * Returns whether or not the current environment meets the requirements |
|---|
| | 19 | * of the plugin in order for it to be run, including the PHP version, |
|---|
| | 20 | * loaded PHP extensions, and other plugins intended to be loaded. |
|---|
| | 21 | * Plugins with such requirements should override this method. |
|---|
| | 22 | * |
|---|
| | 23 | * @param Phergie_Driver_Abstract $client Client instance |
|---|
| | 24 | * @param array $plugins List of short names for plugins that the |
|---|
| | 25 | * bootstrap file intends to instantiate |
|---|
| | 26 | * @return bool TRUE if dependencies are met, FALSE otherwise |
|---|
| | 27 | */ |
|---|
| | 28 | public static function checkDependencies(Phergie_Driver_Abstract $client, array $plugins) |
|---|
| | 29 | { |
|---|
| | 30 | $channels = $client->getIni('autojoin.channels'); |
|---|
| | 31 | if (empty($channels)) { |
|---|
| | 32 | return false; |
|---|
| | 33 | } |
|---|
| | 34 | |
|---|
| | 35 | return true; |
|---|
| | 36 | } |
|---|
| | 37 | |
|---|