PHP Class CampPlugin

Inheritance: extends DatabaseObject
显示文件 Open project: sourcefabric/newscoop Class Usage Examples

Public Properties

Property Type Description
$m_columnNames
$m_dbTableName
$m_keyColumnNames

Protected Properties

Property Type Description
$m_pluginsInfo

Public Methods

Method Description
CampPlugin ( $p_name = null, $p_version = null, $enabled = null )
ClearPluginsInfo ( )
ExtendNoMenuScripts ( &$p_no_menu_scripts )
ExtractPackage ( $p_uploaded_package, &$p_log = null )
GetAll ( $p_reload = false )
GetEnabled ( $p_reload = false )
GetNeedsUpdate ( )
GetPluginsInfo ( boolean $p_selectEnabled = false, boolean $p_reload = false ) : array Return a list or available or activated plugins.
IsPluginEnabled ( $p_name, $p_version = null )
OnAfterUpgrade ( ) : void Updates plugins environment if needed
OnUpgrade ( ) : void Updates plugins if needed
PluginAdminHooks ( string $p_filename, string $p_area = null )
adminHook ( string $filename, array $vars = [] ) Includes hooks for this filename from plugins
create ( $p_name = null, $p_version = null, $p_enabled = true ) constructor
disable ( )
enable ( )
getBasePath ( )
getDbVersion ( )
getFsVersion ( )
getName ( )
getPluginInfo ( $p_plugin_name = '' )
install ( )
isEnabled ( )
uninstall ( )
update ( $p_columns = NULL, $p_commit = true, $p_isSql = false )

Private Methods

Method Description
DeleteCachePluginsInfo ( )
FetchCachePluginsInfo ( ) : boolean Fetch plugin infos from cache.
FetchFilePluginsInfo ( ) : boolen Fetch plugin infos from the %plugin.info files.
StoreCachePluginsInfo ( )

Method Details

CampPlugin() public method

public CampPlugin ( $p_name = null, $p_version = null, $enabled = null )

ClearPluginsInfo() public static method

public static ClearPluginsInfo ( )

ExtendNoMenuScripts() public static method

public static ExtendNoMenuScripts ( &$p_no_menu_scripts )

ExtractPackage() public static method

public static ExtractPackage ( $p_uploaded_package, &$p_log = null )

GetAll() public static method

public static GetAll ( $p_reload = false )

GetEnabled() public static method

public static GetEnabled ( $p_reload = false )

GetNeedsUpdate() public static method

public static GetNeedsUpdate ( )

GetPluginsInfo() public static method

The method have to return an (empty) array.
public static GetPluginsInfo ( boolean $p_selectEnabled = false, boolean $p_reload = false ) : array
$p_selectEnabled boolean
$p_reload boolean
return array

IsPluginEnabled() public static method

public static IsPluginEnabled ( $p_name, $p_version = null )

OnAfterUpgrade() public static method

Updates plugins environment if needed
public static OnAfterUpgrade ( ) : void
return void

OnUpgrade() public static method

Updates plugins if needed
public static OnUpgrade ( ) : void
return void

PluginAdminHooks() public static method

Deprecation:
public static PluginAdminHooks ( string $p_filename, string $p_area = null )
$p_filename string
$p_area string

adminHook() public static method

Includes hooks for this filename from plugins
public static adminHook ( string $filename, array $vars = [] )
$filename string
$vars array

create() public method

constructor
public create ( $p_name = null, $p_version = null, $p_enabled = true )

disable() public method

public disable ( )

enable() public method

public enable ( )

getBasePath() public method

public getBasePath ( )

getDbVersion() public method

public getDbVersion ( )

getFsVersion() public method

public getFsVersion ( )

getName() public method

public getName ( )

getPluginInfo() public method

public getPluginInfo ( $p_plugin_name = '' )

install() public method

public install ( )

isEnabled() public method

public isEnabled ( )

uninstall() public method

public uninstall ( )

update() public method

public update ( $p_columns = NULL, $p_commit = true, $p_isSql = false )

Property Details

$m_columnNames public_oe property

public $m_columnNames

$m_dbTableName public_oe property

public $m_dbTableName

$m_keyColumnNames public_oe property

public $m_keyColumnNames

$m_pluginsInfo protected_oe static_oe property

protected static $m_pluginsInfo