프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$doLoadAlwaysActivatedPlugins | |||
$doLoadPlugins | |||
$loadedPlugins | |||
$pluginToAlwaysActivate | These are always activated and cannot be deactivated | ||
$pluginsToLoad |
메소드 | 설명 | |
---|---|---|
__construct ( Piwik\Application\Kernel\PluginList $pluginList ) | ||
activatePlugin ( string $pluginName ) | Activate the specified plugin and install (if needed) | |
addLoadedPlugin ( string $pluginName, |
Add a plugin in the loaded plugins array | |
checkIsPluginActivated ( string $pluginName ) | Checks whether the given plugin is activated, if not triggers an exception. | |
clearPluginsInstalledConfig ( ) | ||
deactivatePlugin ( string $pluginName ) | Deactivate plugin | |
deletePluginFromFilesystem ( $plugin ) | ||
doNotLoadAlwaysActivatedPlugins ( ) | Disable loading of "always activated" plugins. | |
doNotLoadPlugins ( ) | Disable plugin loading. | |
findComponents ( string $componentName, string $expectedSubclass ) : stdClass[] | Tries to find the given components such as a Menu or Tasks implemented by plugins. | |
findMultipleComponents ( $directoryWithinPlugin, $expectedSubclass ) | ||
getActivatedPlugins ( ) : string[] | Returns a list of all names of currently activated plugin eg, | |
getActivatedPluginsFromConfig ( ) | ||
getAllPluginsNames ( ) : array | Returns the name of all plugins found in this Piwik instance (including those not enabled and themes) | |
getIgnoredBogusPlugins ( ) | ||
getIncompatiblePlugins ( string $piwikVersion ) : |
||
getInstalledPluginsName ( ) : array | Return names of all installed plugins. | |
getInstance ( ) : self | ||
getLoadedPlugin ( string $name ) : |
Returns a Plugin object by name. | |
getLoadedPlugins ( ) : |
Returns an array mapping loaded plugin names with their plugin objects, eg, | |
getLoadedPluginsName ( ) : array | Returns an array containing the plugins class names (eg. 'UserCountry' and NOT 'UserCountry') | |
getMissingPlugins ( ) : array | Returns names of plugins that should be loaded, but cannot be since their files cannot be found. | |
getNumberOfActivatedPlugins ( ) | ||
getPluginsDirectory ( ) | ||
getPluginsLoadedAndActivated ( ) : |
Returns an array of plugins that are currently loaded and activated, mapping loaded plugin names with their plugin objects, eg, | |
getTheme ( string $themeName ) : Piwik\Theme | ||
getThemeEnabled ( ) : |
Returns the currently enabled theme. | |
getTrackerPluginsNotToLoad ( ) : array | Get list of plugins to not load | |
installLoadedPlugins ( ) : array | Install loaded plugins | |
isPluginActivated ( string $name ) : boolean | Returns true if a plugin has been activated. | |
isPluginBundledWithCore ( string $name ) : boolean | Returns true if the plugin is bundled with core or false if it is third party. | |
isPluginInstalled ( $pluginName ) : boolean | ||
isPluginLoaded ( string $name ) : boolean | Returns true if plugin is loaded (in memory). | |
isPluginOfficialAndNotBundledWithCore ( $pluginName ) : boolean | ||
isPluginThirdPartyAndBogus ( $pluginName ) : boolean | ||
isTrackerPlugin ( |
||
isValidPluginName ( $pluginName ) | ||
loadActivatedPlugins ( ) | Loads plugin that are enabled | |
loadAllPluginsAndGetTheirInfo ( ) : array | Returns info regarding all plugins. Loads plugins that can be loaded. | |
loadCorePluginsDuringTracker ( ) | Called during Tracker | |
loadPlugin ( string $pluginName ) : |
Loads the plugin filename and instantiates the plugin with the given name, eg. UserCountry. | |
loadPluginTranslations ( ) | ||
loadPlugins ( array $pluginsToLoad ) | Load AND activates the specified plugins. It will also overwrite all previously loaded plugins, so it acts as a setter. | |
loadTrackerPlugins ( ) : array | ||
postLoadPlugins ( ) | Execute postLoad() hook for loaded plugins | |
readPluginsDirectory ( ) : array | Reads the directories inside the plugins/ directory and returns their names in an array | |
setTrackerPluginsNotToLoad ( array $plugins ) | Do not load the specified plugins (used during testing, to disable Provider plugin) | |
uninstallPlugin ( $pluginName ) : boolean | Uninstalls a Plugin (deletes plugin files from the disk) Only deactivated plugins can be uninstalled | |
unloadPlugin ( |
Unload plugin | |
unloadPlugins ( ) | Unload all loaded plugins |
메소드 | 설명 | |
---|---|---|
getClassNamePlugin ( $pluginName ) | ||
getPluginsFromGlobalIniConfigFile ( ) : array | Reading the plugins from the global.ini.php config file | |
isManifestFileFound ( $path ) | ||
isPluginEnabledByDefault ( $name ) : boolean | ||
isPluginInFilesystem ( $pluginName ) | ||
makePluginClass ( $pluginName ) : |
메소드 | 설명 | |
---|---|---|
clearCache ( string $pluginName ) | ||
deactivateThemeIfTheme ( $pluginName ) | ||
doesAnotherPluginDefineSameColumnWithDbEntry ( Piwik\Plugin\Dimension\VisitDimension | Piwik\Plugin\Dimension\ActionDimension | Piwik\Plugin\Dimension\ConversionDimension $dimension, Piwik\Plugin\Dimension\VisitDimension[] | Piwik\Plugin\Dimension\ActionDimension[] | Piwik\Plugin\Dimension\ConversionDimension[] $allDimensions ) : boolean | ||
executePluginDeactivate ( $pluginName ) | ||
executePluginInstall ( |
Install a specific plugin | |
executePluginUninstall ( $pluginName ) | ||
installPluginIfNecessary ( |
Install a plugin, if necessary | |
isPluginAlwaysActivated ( string $name ) : boolean | Returns true if plugin is always activated | |
isPluginBogus ( $pluginName ) : boolean | ||
isPluginUninstallable ( $name ) : boolean | Returns true if the plugin can be uninstalled. Any non-core plugin can be uninstalled. | |
makePluginsToLoad ( array $pluginsToLoad ) : array | ||
makeSureOnlyActivatedPluginsAreLoaded ( ) | ||
pluginStructureLooksValid ( $path ) | ||
reloadActivatedPlugins ( ) | Load the plugins classes installed. | |
removeInstalledVersionFromOptionTable ( $name ) | ||
removePluginFromConfig ( $pluginName ) | ||
removePluginFromPluginsConfig ( $pluginName ) | ||
removePluginFromPluginsInstalledConfig ( $pluginName ) | ||
resetTransientCache ( ) | ||
uninstallDimension ( string $prefix, |
||
unloadPluginFromMemory ( $pluginName ) | ||
updatePluginsConfig ( array $pluginsToLoad ) | Update Plugins config | |
updatePluginsInstalledConfig ( array $plugins ) | Update PluginsInstalled config |
public __construct ( Piwik\Application\Kernel\PluginList $pluginList ) | ||
$pluginList | Piwik\Application\Kernel\PluginList |
public activatePlugin ( string $pluginName ) | ||
$pluginName | string | Name of plugin |
public addLoadedPlugin ( string $pluginName, |
||
$pluginName | string | plugin name without prefix (eg. 'UserCountry') |
$newPlugin |
public checkIsPluginActivated ( string $pluginName ) | ||
$pluginName | string |
public deactivatePlugin ( string $pluginName ) | ||
$pluginName | string | Name of plugin |
public doNotLoadAlwaysActivatedPlugins ( ) |
public findComponents ( string $componentName, string $expectedSubclass ) : stdClass[] | ||
$componentName | string | The name of the component you want to look for. In case you request a component named 'Menu' it'll look for a file named 'Menu.php' within the root of all plugin folders that implement a class named Piwik\Plugin\$PluginName\Menu. |
$expectedSubclass | string | If not empty, a check will be performed whether a found file extends the given subclass. If the requested file exists but does not extend this class a warning will be shown to advice a developer to extend this certain class. |
리턴 | stdClass[] |
public findMultipleComponents ( $directoryWithinPlugin, $expectedSubclass ) |
public getActivatedPlugins ( ) : string[] | ||
리턴 | string[] |
public static getAllPluginsNames ( ) : array | ||
리턴 | array |
public getIncompatiblePlugins ( string $piwikVersion ) : |
||
$piwikVersion | string | |
리턴 |
public getInstalledPluginsName ( ) : array | ||
리턴 | array |
public getLoadedPlugin ( string $name ) : |
||
$name | string | The name of the plugin, eg, `'Actions'`. |
리턴 |
public getLoadedPlugins ( ) : |
||
리턴 |
public getLoadedPluginsName ( ) : array | ||
리턴 | array |
public getMissingPlugins ( ) : array | ||
리턴 | array |
protected getPluginsFromGlobalIniConfigFile ( ) : array | ||
리턴 | array |
public getPluginsLoadedAndActivated ( ) : |
||
리턴 |
public getThemeEnabled ( ) : |
||
리턴 |
public getTrackerPluginsNotToLoad ( ) : array | ||
리턴 | array |
public installLoadedPlugins ( ) : array | ||
리턴 | array | Error messages of plugin install fails |
public isPluginActivated ( string $name ) : boolean | ||
$name | string | Name of plugin, eg, `'Actions'`. |
리턴 | boolean |
public isPluginBundledWithCore ( string $name ) : boolean | ||
$name | string | The name of the plugin, eg, `'Actions'`. |
리턴 | boolean |
protected isPluginEnabledByDefault ( $name ) : boolean | ||
$name | ||
리턴 | boolean |
public isPluginInstalled ( $pluginName ) : boolean | ||
$pluginName | ||
리턴 | boolean |
public isPluginLoaded ( string $name ) : boolean | ||
$name | string | Name of plugin, eg, `'Acions'`. |
리턴 | boolean |
public isPluginOfficialAndNotBundledWithCore ( $pluginName ) : boolean | ||
$pluginName | ||
리턴 | boolean |
public isPluginThirdPartyAndBogus ( $pluginName ) : boolean | ||
$pluginName | ||
리턴 | boolean |
public loadAllPluginsAndGetTheirInfo ( ) : array | ||
리턴 | array | An array that maps plugin names with arrays of plugin information. Plugin information consists of the following entries: - **activated**: Whether the plugin is activated. - **alwaysActivated**: Whether the plugin should always be activated, or not. - **uninstallable**: Whether the plugin is uninstallable or not. - **invalid**: If the plugin is invalid, this property will be set to true. If the plugin is not invalid, this property will not exist. - **info**: If the plugin was loaded, will hold the plugin information. See {@link Piwik\Plugin::getInformation()}. |
public loadPlugin ( string $pluginName ) : |
||
$pluginName | string | |
리턴 |
public loadPlugins ( array $pluginsToLoad ) | ||
$pluginsToLoad | array | Array of plugins to load. |
public loadTrackerPlugins ( ) : array | ||
리턴 | array | names of plugins that have been loaded |
protected makePluginClass ( $pluginName ) : |
||
$pluginName | ||
리턴 |
public readPluginsDirectory ( ) : array | ||
리턴 | array |
public setTrackerPluginsNotToLoad ( array $plugins ) | ||
$plugins | array |
public uninstallPlugin ( $pluginName ) : boolean | ||
$pluginName | ||
리턴 | boolean |
public unloadPlugin ( |
||
$plugin |
protected $pluginToAlwaysActivate |