PHP Class RCCWP_Application, Magic-Fields

Afficher le fichier Open project: hunk/Magic-Fields Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

CheckInstallation() public static méthode

@return void
public static CheckInstallation ( ) : void
Résultat void

ContinueInstallation() public static méthode

public static ContinueInstallation ( )

InWritePostPanel() public static méthode

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

Install() public static méthode

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

IsWordpressMu() public static méthode

@return bool
public static IsWordpressMu ( ) : boolean
Résultat boolean

SetCaps() public static méthode

public static SetCaps ( )

Uninstall() public static méthode

@return void
public static Uninstall ( ) : void
Résultat void

UpgradeBlog() public static méthode

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
Résultat void