Abstract class used to manage themes All themes MUST extends this class

uses the page renderer
uses the exception handler
uses the current user
package OWR
used_by \OWR\Controller

 Methods

Wrapper for all theme methods It will call method in this order : theme, parent theme, default theme

__call(string $name, array $args) : mixed
Static
access public
static

Parameters

$name

string

method to call

$args

array

arguments to pass to the method

Returns

mixedreturn from method call

Wrapper for all theme methods It will call method in this order : theme, parent theme, default theme

__callStatic(string $name, array $args) : mixed
Static
access public
static

Parameters

$name

string

method to call

$args

array

arguments to pass to the method

Returns

mixedreturn from method call

Constructor

__construct() 
access public

Generates categories block template

categories(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::categories()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of categories block template

Generates category block template

category(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::category()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of category block template

Returns the list of all available themes

getList() : array
Static
author Pierre-Alain Mignot
access public

Returns

arraylist of available themes

Returns list of theme pages

getPages() : \OWR\$this->_pages
access public

Returns

\OWR\$this->_pages

Returns parent theme name

getParent() : string
access public

Returns

string$this->_parent

Returns parent theme instance if exists

getParentTheme() : mixed
access public

Returns

mixed$this->_parent instance or false if empty

Returns path to : template if $tpl is specified (pages or blocks), or theme

getPath(string $tpl) : string
access public

Parameters

$tpl

string

optionnal, name of the template to get path

Returns

stringpath

Instance getter This function can NOT be overloaded

iGet() : mixed
Static
access public
static
author Pierre-Alain Mignot

Returns

mixedthe instance

Generates index template

index(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::index()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of index template

Displays CLI logs

logs(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::logs()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringcontent of cli log file

Removes all indentation from file

minify(string $file) : string
access public

Parameters

$file

string

the file to minify

Returns

stringthe mimnified file

Generates opensearch template

opensearch(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::opensearch()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of opensearch template

Generates opml template

opml(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::opml()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of opml template

Generates post block template

post(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::post()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post block template

Generates post_content block template

post_content(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::post_content()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post_content block template

Generates post_details block template

post_details(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::post_details()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of post_details block template

Generates posts block template

posts(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::posts()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of posts block template

Generates rss template

rss(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::rss()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of rss template

Generates stats block template

stats(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::stats()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of stats block template

Generates tag block template

tag(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::tag()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of tag block template

Generates tags block template

tags(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::tags()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of tags block template

Generates user template

user(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::user()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of user template

Generates users block template

users(array $datas, array $noCacheDatas) : string
Inherited
access public
inherited_from \OWR\Interfaces\Theme::users()

Parameters

$datas

array

datas to generate template

$noCacheDatas

array

not cached datas to generate template

Returns

stringgenerated content of users block template

 Properties

 

path to current theme blocks templates

$_blocksPath : string
access protected
 

current theme class name

$_className : string
access protected
 

default theme class name

$_defaultClassName : string
access protected
 

Default theme name

$_defaultName : string
access protected
static
 

current theme name (uses default if not specified)

$_name : string
access protected
 

list of theme pages

$_pages : array
access protected
 

path to current theme pages templates

$_pagesPath : string
access protected
 

name of parent theme

$_parent : string
access protected
 

name of parent class name

$_parentClassName : string
access protected
 

path to current theme

$_path : string
access protected
 

instance of OWR\View

$_view : object
access protected
 

instance of current theme object

$__theme : object
access private
static