Manage the clean admin site.
| DLCleanAdmin | Manage the clean admin site. |
| Member Data | |
| $default_content | (string) The default content of the default page. |
| $pages | An associative array containing the pages in this clean admin site. |
| Class Construction | |
| __construct | Create a new clean admin site. |
| Output | |
| OutputAsAJAX | Output the given data so that it can be read by JavaScript. |
| OutputSite | Output the site but outputting the index page. |
| Page Management | |
| AddPage | Add a new page to the clean admin site. |
| GetBreadcrumb | Retrieve the breadcrumb for a clean admin page. |
| OverwriteDefaultPage | Overwrite the default page content. |
public function OutputSite( $title, $options = array() )
Output the site but outputting the index page.
| $title | (string) The title of the site. |
| $options | (array) An associative array containing various options used by this method. Defaults to an empty array. |
The structure of the $options parameter, if given, should look like the following:
array(
css => array(
{(string) URL to a CSS file.},
...
),
javascript => array(
{(string) URL to a JavaScript file.},
...
),
logo => {
(string) The URL to image to be used as the logo. The image
must have a dimension of 180x180 pixels. If this is an
empty string, it will randomly select one of the default
logos. Defaults to an empty string.
}
)
public function GetBreadcrumb( $data )
Retrieve the breadcrumb for a clean admin page.
| $data | (array) An array of pages containing the breadcrumb information. |
The structure of the $data parameter, if given, should look like the following:
array(
array(
url => {
(string) The URL of the page. This can be an empty
string in which case, no link is created.
},
text => {
(string) The title of the page.
}
),
...
)(string) The HTML for the breadcrumb.
(string) The default content of the default page.
private $default_content
An associative array containing the pages in this clean admin site.
private $pages
Create a new clean admin site.
public function __construct()
Output the given data so that it can be read by JavaScript.
public function OutputAsAJAX( $action, $data )
Output the site but outputting the index page.
public function OutputSite( $title, $options = array() )
Add a new page to the clean admin site.
public function AddPage( $url, $title )
Retrieve the breadcrumb for a clean admin page.
public function GetBreadcrumb( $data )
Overwrite the default page content.
public function OverwriteDefaultPage( $content )