Unclecheese\Green\DesignModule
Class DesignModule Defines a collection of templates, css, javascript, and data that make up a design module
- Author: UncleCheese <unclecheese@leftandmain.com>
Synopsis
class DesignModule
{
- // members
- private static array $data_file_names = ;
- protected $directory;
- // methods
- public void __construct()
- public string getPath()
- public string getRelativePath()
- public string getName()
- public string getLayoutTemplateFile()
- public string getMainTemplateFile()
- public string getTemplateContents()
- public bool|DataSource getDataSource()
- public void getConfiguration()
- public array getStylesheets()
- public array getJavascripts()
- public array getImages()
- public void loadRequirements()
- protected array getFilesByPattern()
Members
private
- $data_file_names — array
protected
- $directory — string
Methods
protected
- getFilesByPattern() — A helper to get files of a certain pattern, e.g. extension
public
- __construct() — DesignModule constructor.
- getConfiguration()
- getDataSource() — Gets the data source as an object
- getImages() — Gets all the images in the module
- getJavascripts() — Gets all of the javascripts in the module
- getLayoutTemplateFile() — Gets the absolute path to the layout template file
- getMainTemplateFile() — Gets the absolute path to the main template file
- getName() — A simple identifier for the module
- getPath()
- getRelativePath() — Gets the path relative to the web root
- getStylesheets() — Gets all of the stylesheets in the module
- getTemplateContents() — Gets the contents of the design template
- loadRequirements() — Loads all of the JS and CSS