Public Member Functions | |
| Diogenes_Plugins (&$dbh, $plugdir, $cachedir) | |
| cacheFile ($barrel) | |
| cacheGet ($cache, $barrel, $page, $plugin) | |
| cacheGetAtPos ($cache, $barrel, $page, $pos) | |
| cachedActive ($cache, $barrel, $page) | |
| cachedAvailable ($cache, $barrel, $page) | |
| clean_database (&$page) | |
| compileCache ($cachefile, $barrel) | |
| load ($plugentry) | |
| readCache ($cachefile, $barrel) | |
| trace_format () | |
Public Attributes | |
| $loaded = array() | |
| $cachedir | |
| $plugdir | |
Definition at line 26 of file Plugins.php.
| Diogenes_Plugins::Diogenes_Plugins | ( | &$ | dbh, | |
| $ | plugdir, | |||
| $ | cachedir | |||
| ) |
Constructs a new holder for Diogenes plugins.
| $dbh | ||
| $plugdir | ||
| $cachedir |
Definition at line 44 of file Plugins.php.
| Diogenes_Plugins::cacheFile | ( | $ | barrel | ) |
| Diogenes_Plugins::cacheGet | ( | $ | cache, | |
| $ | barrel, | |||
| $ | page, | |||
| $ | plugin | |||
| ) |
Return the cache entry for specified plugin
| $cache | ||
| $barrel | ||
| $page | ||
| $plugin |
Definition at line 70 of file Plugins.php.
| Diogenes_Plugins::cacheGetAtPos | ( | $ | cache, | |
| $ | barrel, | |||
| $ | page, | |||
| $ | pos | |||
| ) |
Return the cache entry for a plugin at a specified position
| $cache | ||
| $barrel | ||
| $page | ||
| $pos |
Definition at line 90 of file Plugins.php.
| Diogenes_Plugins::cachedActive | ( | $ | cache, | |
| $ | barrel, | |||
| $ | page | |||
| ) |
List the plugins that are active in a given context
| $cache | ||
| $barrel | ||
| $page |
Definition at line 108 of file Plugins.php.
| Diogenes_Plugins::cachedAvailable | ( | $ | cache, | |
| $ | barrel, | |||
| $ | page | |||
| ) |
Returns an array of cache entries representing the available plugins in a given context
| $cache | ||
| $barrel | ||
| $page |
Definition at line 129 of file Plugins.php.
| Diogenes_Plugins::clean_database | ( | &$ | page | ) |
Remove database references to plugins that are not available.
Definition at line 146 of file Plugins.php.
| Diogenes_Plugins::compileCache | ( | $ | cachefile, | |
| $ | barrel | |||
| ) |
| Diogenes_Plugins::load | ( | $ | plugentry | ) |
| Diogenes_Plugins::readCache | ( | $ | cachefile, | |
| $ | barrel | |||
| ) |
Read the compiled plugin cache
| $cachefile | ||
| $barrel |
Definition at line 274 of file Plugins.php.
| Diogenes_Plugins::trace_format | ( | ) |
Prepare plugins trace for output
Definition at line 309 of file Plugins.php.
| Diogenes_Plugins::$loaded = array() |
Array of currently loaded plugins
Definition at line 29 of file Plugins.php.
| Diogenes_Plugins::$cachedir |
Directory that holds the plugins cache files
Definition at line 32 of file Plugins.php.
Referenced by Diogenes_Plugins().
| Diogenes_Plugins::$plugdir |
Directory that holds the plugins
Definition at line 35 of file Plugins.php.
Referenced by Diogenes_Plugins().
1.5.1