Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Skin/SkinInterface.php - 158 lines - 4234 bytes - Source - Print

Description: Skin Interface

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SkinInterface:: (12 methods):
setDirPath()
setAssets()
setInfos()
getSubdirPath()
updateSections()
getUploaded()
create()
update()
duplicate()
delete()
admin()
render()

Interface: SkinInterface


setDirPath($path = null)  line: 37
$dirPath property setter.

return: string $this->dirPath
param: string $path Custom skin directory path.
setAssets($pages = null, $forms = null, $styles = null)  line: 48
$assets property setter.

return: object $this   The current class object (chainable).
param: array $pages  Page names to work with;
param: array $forms  Form names to work with;
param: array $styles CSS names to work with.
setInfos($name,$title = null,$version = null,$description = null,$author = null,$author_uri = null)  line: 59
$infos and $name properties setter.

return: object $this        The current class object (chainable).
param: string $name        Skin name;
param: string $title       Skin title;
param: string $version     Skin version;
param: string $description Skin description;
param: string $author      Skin author;
param: string $author_uri  Skin author URL;
getSubdirPath($name = null)  line: 80
Get a $dir property value related subdirectory path.

return: string       The Path
param: string $name Directory(/skin) name (default: $this->getName()).
updateSections($set = null, $where = null)  line: 89
Update the txp_section table.

return: bool          FALSE on error.
param: string $set   The SET clause (default: "skin = '".doSlash($this->getName())."'")
param: string $where The WHERE clause (default: "skin = '".doSlash($this->getBase())."'")
getUploaded($expanded = true)  line: 99
$uploaded property getter.

return: array
param: bool $expanded Set it to false to get a simple associative
create()  line: 109
Create/CreateFrom a single skin (and its related assets)
Merges results in the related property.

return: object $this The current object (chainable).
update()  line: 118
Update a single skin (and its related dependencies)
Merges results in the related property.

return: object $this The current object (chainable).
duplicate()  line: 127
Duplicate multiple skins (and their related $assets)
Merges results in the related property.

return: object $this The current object (chainable).
delete($sync = false)  line: 136
Delete multiple skins (and their related $assets + directories if empty)
Merges results in the related property.

return: object $this The current object (chainable).
admin()  line: 145
Control the admin tab.

render($step line: 151
Render (echo) the $step related admin tab.

param: string $step

title

Body