\apex\app\pkgtheme

Handles all theme functions including create, publish, download, install and remove.

Summary

Methods
Properties
Constants
create()
publish()
install()
remove()
No public properties found
No constants found
compile()
download()
No protected properties found
N/A
No private methods found
$default_files
N/A

Properties

$default_files

$default_files :

Type

Methods

create()

create(string  $theme_alias,integer  $repo_id,string  $area = 'public'): integer

Create a new theme

Parameters

string $theme_alias

The alias of the new theme to create

integer $repo_id

The ID# of the repo to publish the theme to

string $area

The area the theme is for ('members' or 'public'), defaults to 'public'

Returns

integer —

The ID# of the newly created theme

publish()

publish(string  $theme_alias)

Publish a theme to a repository

Parameters

string $theme_alias

The alias of the theme to publish

install()

install(string  $theme_alias,integer  $repo_id,string  $purchase_code = '')

Download and install a theme

Parameters

string $theme_alias

The alias of the theme to install.

integer $repo_id

Optional ID# of the repo to download from. If unspecified, all repos will be checked.

string $purchase_code

Optional purchase code for any commercial themes to be unlocked by the repository.

remove()

remove(string  $theme_alias)

Remove a theme from the system.

Parameters

string $theme_alias

The alias of the theme to remove.

compile()

compile(string  $theme_alias)

Compile a theme into a zip archive

Parameters

string $theme_alias

The alias of the theme to archive

download()

download(string  $theme_alias,integer  $repo_id,string  $purchase_code = '')

Download a theme from the repository.

Parameters

string $theme_alias

The alias of the theme to download.

integer $repo_id

Optional ID# of the repo to download from. If unspecified, all repos will be checked.

string $purchase_code

Optional purchase code for commercial themes to unlock the theme from the repository.