IP.Board  3.3.0
cp_skin_templates Class Reference

Public Member Functions

 __construct (ipsRegistry $registry)
 ajaxCategoryForm ()
 blockTemplateForm ($title, $code='doadd', $form)
 blockTemplateList ($groups, $groupNames)
 categoryForm ($type, $category=array())
 confirmDelete ($id, $template, $count)
 deleteTemplateForm ($count, $id, $alternatives)
 importForm ()
 inlineTemplateTags ($categories, $blocks, $databases, $showSpecial=false, $tabDatabase=false)
 listDatabases ($databases)
 listDatabaseTags ($database, $fields)
 listTemplatesArticles ($templates=array(), $categories=array())
 listTemplatesDatabase ($templates=array(), $categories=array())
 listTemplatesPage ($templates=array(), $categories=array())
 modalError ($error)
 showDatabasesModal ($template, $databases=array())
 showPagesModal ($template, $pages=array())
 templateForm ($type, $defaults, $form)
 viewDiffReport ($template, $output)

Protected Attributes

 $cache
 $caches
 $DB
 $lang
 $member
 $memberData
 $registry
 $request
 $settings

Constructor & Destructor Documentation

__construct ( ipsRegistry registry)

Constructor

Parameters:
object$registryRegistry object
Returns:
void

Member Function Documentation

Show AJAX add category form

public

Returns:
string HTML
blockTemplateForm ( title,
code = 'doadd',
form 
)

Show the form to add or edit a block template

public

Parameters:
arrayForm elements
Returns:
string HTML
blockTemplateList ( groups,
groupNames 
)

List block templates

public

Parameters:
arrayArray of blocks
Returns:
string HTML
categoryForm ( type,
category = array() 
)

Show category form

public

Parameters:
stringAdd or edit
arrayBlock data for edit
Returns:
string HTML
confirmDelete ( id,
template,
count 
)

Confirm template deletion

public

Parameters:
integerTemplate id
arrayTemplate data
integerPages still using template
Returns:
string HTML
deleteTemplateForm ( count,
id,
alternatives 
)

Offer an option when deleting: update to new template, or copy to blocks

public

Parameters:
arrayArray of blocks
Returns:
string HTML

Block to allow importing of templates

public

Returns:
string HTML
inlineTemplateTags ( categories,
blocks,
databases,
showSpecial = false,
tabDatabase = false 
)

Show the template tags inline

public

Parameters:
arrayCategories
arrayCurrent template tags (blocks)
arrayDatabases
boolForce special tags
Returns:
string HTML
listDatabases ( databases)

Show the databases for db tag help

public

Parameters:
arrayDatabases
Returns:
string HTML
listDatabaseTags ( database,
fields 
)

Show the database tag help

public

Parameters:
arrayDatabase
arrayFields
Returns:
string HTML
listTemplatesArticles ( templates = array(),
categories = array() 
)

Show the listing of article templates

public

Parameters:
arrayCurrent templates
arrayCategories
Returns:
string HTML
listTemplatesDatabase ( templates = array(),
categories = array() 
)

Show the listing of database templates

public

Parameters:
arrayCurrent templates
arrayCategories
Returns:
string HTML
listTemplatesPage ( templates = array(),
categories = array() 
)

Show the listing of page templates

public

Parameters:
arrayCurrent templates
arrayCategories
Returns:
string HTML
modalError ( error)

Error shown in a modal

public

Parameters:
stringError message
Returns:
string HTML
showDatabasesModal ( template,
databases = array() 
)

Show databases using a template

public

Parameters:
arrayTemplate info
arrayDatabases using this template
Returns:
string HTML
showPagesModal ( template,
pages = array() 
)

Show pages using a template

public

Parameters:
arrayTemplate info
arrayPages using this template
Returns:
string HTML
templateForm ( type,
defaults,
form 
)

Show the form to add or edit a template

public

Parameters:
stringType (add|edit)
arrayCurrent data
arrayForm elements
Returns:
string HTML
viewDiffReport ( template,
output 
)

View a database template difference report

public

Parameters:
arrayTemplate data
stringDiff output
Returns:
string HTML

Field Documentation

$registry [protected]

Registry Object Shortcuts


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables