Package: Record
A theme and its metadata.
Dummy model to simulate the other ActiveRecord models.
Parameters: |
|
---|
Parameters: |
|
---|
Get the physical path to the theme’s scripts.
Returns: | string Physical path. |
---|
Get the web path to the theme’s assets.
Returns: | string Web path. |
---|
Get the physical path to the theme’s override scripts for the given plugin.
Parameters: |
|
---|---|
Returns: | string Physical path. |
Get the web path to the theme’s override assets for the given plugin.
Parameters: |
|
---|---|
Returns: | string Web path. |
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Get the directory name of the current theme.
Parameters: |
|
---|---|
Returns: | string |
Retrieve all themes
Returns: | array An array of theme objects |
---|
Retrieve a theme.
Parameters: |
|
---|---|
Returns: | Theme A theme object |
Set theme configuration options.
Parameters: |
|
---|---|
Returns: | void |
Get theme configuration options.
Parameters: |
|
---|---|
Returns: | array An associative array of configuration options, where each key is a configuration form input name and each value is a string value of that configuration form input |
Get the value of a theme configuration option.
Parameters: |
|
---|---|
Returns: | string The value of the theme option |
Set the value of a theme configuration option.
Parameters: |
|
---|---|
Returns: | void |
Get the name of a specific theme’s option. Each theme has a single option in the option’s table, which stores all of the configuration options for that theme
Parameters: |
|
---|---|
Returns: | string The name of a specific theme’s option. |
Get the name of a file uploaded as a theme configuration option. This is the name of the file after it has been uploaded and renamed.
Parameters: |
|
---|---|
Returns: | string The name of an uploaded file for the theme. |
Parses the website string to confirm whether it has a scheme.
Parameters: |
|
---|---|
Returns: | string The website URL with a prepended scheme. |