PHP Класс RCCWP_Application, Magic-Fields

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddColumnIfNotExist() публичный статический Метод

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

CheckInstallation() публичный статический Метод

@return void
public static CheckInstallation ( ) : void
Результат void

ContinueInstallation() публичный статический Метод

public static ContinueInstallation ( )

InWritePostPanel() публичный статический Метод

This function returns true if the user be in the Write Post Page
public static InWritePostPanel ( ) : Bool
Результат Bool

Install() публичный статический Метод

This function create all the Magic Fields default values and his tables in the database
public static Install ( ) : void
Результат void

IsWordpressMu() публичный статический Метод

@return bool
public static IsWordpressMu ( ) : boolean
Результат boolean

SetCaps() публичный статический Метод

public static SetCaps ( )

Uninstall() публичный статический Метод

@return void
public static Uninstall ( ) : void
Результат void

UpgradeBlog() публичный статический Метод

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
Результат void