Constants

CACHE_FILE_CUSTOMER_THEMES_LIST

CACHE_FILE_CUSTOMER_THEMES_LIST

CACHE_FILE_MUST_HAVE_THEMES_LIST

CACHE_FILE_MUST_HAVE_THEMES_LIST

UPLOADED_THEME_DIR_NAME

UPLOADED_THEME_DIR_NAME

Properties

$name

$name : 

Type

$directory

$directory : 

Type

$responsive

$responsive : 

Type

$default_left_column

$default_left_column : 

Type

$default_right_column

$default_right_column : 

Type

$product_per_page

$product_per_page : 

Type

$access_rights

$access_rights : integer

Type

integer — access rights of created folders (octal)

$definition

$definition : 

Type

Methods

getThemes()

getThemes() 

getAllThemes()

getAllThemes(  $excluded_ids = false) 

Parameters

$excluded_ids

getAvailable()

getAvailable(boolean  $installed_only = true) : array

return an array of all available theme (installed or not)

Parameters

boolean $installed_only

Returns

array —

string (directory)

isUsed()

isUsed() : boolean

check if a theme is used by a shop

Returns

boolean

add()

add(boolean  $autodate = true, boolean  $null_values = false) : boolean

add only theme if the directory exists

Parameters

boolean $autodate
boolean $null_values

Returns

boolean —

Insertion result

getByDirectory()

getByDirectory(  $directory) : boolean|\Theme

Parameters

$directory

Returns

boolean|\Theme

getInstalledThemeDirectories()

getInstalledThemeDirectories() 

getThemeInfo()

getThemeInfo(  $id_theme) 

Parameters

$id_theme

getNonInstalledTheme()

getNonInstalledTheme() 

updateMetas()

updateMetas(array  $metas, boolean  $full_update = false) 

update the table PREFIX_theme_meta for the current theme

Parameters

array $metas
boolean $full_update

If true, all the meta of the theme will be deleted prior the insert, otherwise only the current $metas will be deleted

hasColumns()

hasColumns(  $page) 

Parameters

$page

hasColumnsSettings()

hasColumnsSettings(  $page) 

Parameters

$page

hasLeftColumn()

hasLeftColumn(  $page = null) 

Parameters

$page

hasRightColumn()

hasRightColumn(  $page = null) 

Parameters

$page

getMetas()

getMetas() : array|boolean

Returns

array|boolean

removeMetas()

removeMetas() : boolean

Returns

boolean

toggleResponsive()

toggleResponsive() 

toggleDefaultLeftColumn()

toggleDefaultLeftColumn() 

toggleDefaultRightColumn()

toggleDefaultRightColumn()