Returns all the page Templates, sorted by label.
Static function.
static array(CMS_pageTemplate)
getAll
([boolean $includeInactive = false], [ $keyword = ''], [ $groups = array()], [ $website = ''], [ $tplIds = array()], [ $user = false], [ $start = 0], [ $limit = 0], [ $returnObjects = true], [ &$score = array()])
-
boolean
$includeInactive: If set to true, don't watch inactive templates
-
$keyword
-
$groups
-
$website
-
$tplIds
-
$user
-
$start
-
$limit
-
$returnObjects
-
&$score
Get All Groups Static function
static array(string)
getAllGroups
([ $returnStack = false])
Returns all the page templates within group Static function
static array(CMS_profile_user)
getByGroup
(string $group)
-
string
$group: The group the templates belongs to
Returns a CMS_pageTemplate when given an ID Static function.
-
integer
$id: The DB ID of the wanted CMS_pageTemplate
public static getCloneFromID
Clones a Template, changes some attributes and writes it to persistence (MySQL for now)
static a
getCloneFromID
([anyTemplateID $templateID = 0], [String $label = false], [boolean $setPrivate = false], [boolean $dontCopyClientSpaces = false], [integer $tplFrom = false])
-
boolean
$setPrivate: Should the template be set as a private one ? ALSO determines if the new template should point to the same file
-
boolean
$dontCopyClientSpaces: Should the clientspaces be copied ?
-
integer
$tplFrom: the original template ID to get good rows
-
anyTemplateID
$templateID: as the ID of Template to be cloned
-
String
$label: label receive a new label for this Template
Return pages IDs coresponding of a given template ID
static array
getPagesByTemplate
(integer/CMS_pageTemplate $template, [boolean $returnObjects = false])
-
integer/CMS_pageTemplate
$template: templateID : the template to get pagesIDs
-
boolean
$returnObjects: returnObjects : to return pages objects or pages IDs
Return a template ID corresponding of a given clone ID
static integer
getTemplateIDForCloneID
(integer $cloneID)
-
integer
$cloneID: cloneID : the clone ID to get template ID
Get all templates replacement for a given template
-
CMS_pageTemplate
$tplFrom: : the template to get replacements
-
CMS_profile_user
$cms_user: : user to get template replacements (to check rights)
-
integer
$pageId: : user to get template replacements (to check websites)
-
$user
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()