PHP Class RCCWP_Application, Magic-Fields

Exibir arquivo Open project: hunk/Magic-Fields Class Usage Examples

Public Methods

Method Description
AddColumnIfNotExist ( $db, $column, $column_attr = "VARCHAR( 255 ) NULL" )
CheckInstallation ( ) : void This function check if Magic Fields has all the requirements for his use
ContinueInstallation ( )
InWritePostPanel ( ) : Bool This function returns true if the user be in the Write Post Page
Install ( ) : void Installing Magic fields
IsWordpressMu ( ) : boolean Return True if Magic Fields was installed in a Wordpress Mu
SetCaps ( )
Uninstall ( ) : void Uninstall the Magic Fields Plugin
UpgradeBlog ( ) : void Upgrade Blog

Method Details

AddColumnIfNotExist() public static method

public static AddColumnIfNotExist ( $db, $column, $column_attr = "VARCHAR( 255 ) NULL" )

CheckInstallation() public static method

@return void
public static CheckInstallation ( ) : void
return void

ContinueInstallation() public static method

public static ContinueInstallation ( )

InWritePostPanel() public static method

This function returns true if the user be in the Write Post Page
public static InWritePostPanel ( ) : Bool
return Bool

Install() public static method

This function create all the Magic Fields default values and his tables in the database
public static Install ( ) : void
return void

IsWordpressMu() public static method

@return bool
public static IsWordpressMu ( ) : boolean
return boolean

SetCaps() public static method

public static SetCaps ( )

Uninstall() public static method

@return void
public static Uninstall ( ) : void
return void

UpgradeBlog() public static method

If the Plugin was upgrade from a older version this function is executed for check any possible change in the database
public static UpgradeBlog ( ) : void
return void