Method | Description | |
---|---|---|
buildTemplateHTML ( array $format, boolean $large = false ) : string | Build HTML for a template (visual representation) | |
checkSettings ( ) : array | Checks the settings and optionally returns an array with warnings | |
clearCache ( ) | Clear all applications cache. | |
createTemplateXmlForExport ( string $theme ) : string | Create template XML for export | |
deleteTemplate ( integer $id ) : boolean | Delete a template. | |
existsModule ( string $module ) : boolean | Does this module exist. | |
existsTemplate ( integer $id ) : boolean | Check if a template exists | |
existsTheme ( string $theme ) : boolean | Does this template exist. | |
getExtras ( ) : array | Get extras | |
getExtrasData ( ) : array | Get all the available extra's | |
getModuleInformation ( string $module ) : array | Fetch the module information from the info.xml file. | |
getModules ( ) : array | Get modules based on the directory listing in the backend application. | |
getModulesThatRequireAkismet ( ) : array | Fetch the list of modules that require Akismet API key | |
getModulesThatRequireGoogleMaps ( ) : array | Fetch the list of modules that require Google Maps API key | |
getTemplate ( integer $id ) : array | Get a given template | |
getTemplates ( string $theme = null ) : array | Get templates | |
getThemes ( ) : array | Fetch the list of available themes | |
hasModuleWarnings ( string $module ) : string | Checks if a specific module has errors or not | |
insertTemplate ( array $template ) : integer | Inserts a new template | |
installModule ( string $module ) | Install a module. | |
installTheme ( string $theme ) | Install a theme. | |
isModuleInstalled ( string $module ) : boolean | Checks if a module is already installed. | |
isTemplateInUse ( integer $templateId ) : boolean | Is the provided template id in use by active versions of pages? | |
isThemeInstalled ( string $theme ) : boolean | Checks if a theme is already installed. | |
isWritable ( string $path ) : boolean | Check if a directory is writable. | |
processModuleXml ( SimpleXMLElement $xml ) : array | Process the module's information XML and return an array with the information. | |
processThemeXml ( SimpleXMLElement $xml ) : array | Process the theme's information XML and return an array with the information. | |
templateSyntaxToArray ( string $syntax ) : array | Convert the template syntax into an array to work with. | |
updateTemplate ( array $item ) | Update a template | |
validateThemeInformation ( array $information ) : array | Make sure that we have an entirely valid theme information array |
public static checkSettings ( ) : array | ||
return | array |
public static clearCache ( ) |
public static createTemplateXmlForExport ( string $theme ) : string | ||
$theme | string | |
return | string |
public static deleteTemplate ( integer $id ) : boolean | ||
$id | integer | The id of the template to delete. |
return | boolean |
public static existsModule ( string $module ) : boolean | ||
$module | string | Module to check for existence. |
return | boolean |
public static existsTemplate ( integer $id ) : boolean | ||
$id | integer | The Id of the template to check for existence. |
return | boolean |
public static existsTheme ( string $theme ) : boolean | ||
$theme | string | Theme to check for existence. |
return | boolean |
public static getExtrasData ( ) : array | ||
return | array |
public static getModuleInformation ( string $module ) : array | ||
$module | string | |
return | array |
public static getModules ( ) : array | ||
return | array |
public static getModulesThatRequireAkismet ( ) : array | ||
return | array |
public static getModulesThatRequireGoogleMaps ( ) : array | ||
return | array |
public static getTemplate ( integer $id ) : array | ||
$id | integer | The id of the requested template. |
return | array |
public static getTemplates ( string $theme = null ) : array | ||
$theme | string | The theme we want to fetch the templates from. |
return | array |
public static hasModuleWarnings ( string $module ) : string | ||
$module | string | |
return | string |
public static insertTemplate ( array $template ) : integer | ||
$template | array | The data for the template to insert. |
return | integer |
public static installModule ( string $module ) | ||
$module | string | The name of the module to be installed. |
public static installTheme ( string $theme ) | ||
$theme | string | The name of the theme to be installed. |
public static isModuleInstalled ( string $module ) : boolean | ||
$module | string | |
return | boolean |
public static isTemplateInUse ( integer $templateId ) : boolean | ||
$templateId | integer | The id of the template to check. |
return | boolean |
public static isThemeInstalled ( string $theme ) : boolean | ||
$theme | string | |
return | boolean |
public static isWritable ( string $path ) : boolean | ||
$path | string | The path to check. |
return | boolean |
public static processModuleXml ( SimpleXMLElement $xml ) : array | ||
$xml | SimpleXMLElement | |
return | array |
public static processThemeXml ( SimpleXMLElement $xml ) : array | ||
$xml | SimpleXMLElement | |
return | array |
public static templateSyntaxToArray ( string $syntax ) : array | ||
$syntax | string | |
return | array |
public static updateTemplate ( array $item ) | ||
$item | array | The new data for the template. |
public static validateThemeInformation ( array $information ) : array | ||
$information | array | Contains the parsed theme info.xml data. |
return | array |