- Symphony 2.2.2
public class Administration extends Symphonyclass.administration.php #17
The Administration class is an instance of Symphony that controls all backend pages. These pages are HTMLPages are usually generated using XMLElement before being rendered as HTML. These pages do not use XSLT. The Administration is only accessible by logged in Authors
The class representation of the current Symphony backend page, which is a subclass of the HTMLPage class. Symphony uses a convention of prefixing backend page classes with 'content'. ie. 'contentBlueprintsSections'
Called by index.php, this function is responsible for rendering the current page on the Frontend. Two delegates are fired, AdminPagePreGenerate and AdminPagePostGenerate. This function runs the Profiler for the page build process.
The HTML of the page to return
If a page is not found in the Symphony backend, this function should be called which will raise a customError to display the default Symphony page not found template
Returns the current Page path, excluding the domain and Symphony path.
The path of the current page, ie. '/blueprints/sections/'
This function resolves the string of the page to the relevant backend page class. The path to the backend page is split on the slashes and the resulting pieces used to determine if the page is provided by an extension, is a section (index or entry creation) or finally a standard Symphony content page. If no page driver can be found, this function will return false
If successful, this function will return an associative array that at the very least will return the page's classname, pageroot, driver and context, otherwise this will return false.
static Administration instance()
This function returns an instance of the Administration class. It is the only way to create a new Administration, as it implements the Singleton interface
Overrides the Symphony isLoggedIn function to allow Authors
to become logged into the backend when
is present. This logs an Author in using the loginFromToken function.
A token may be 6 or 8 characters in length in the backend. A 6 character token
is used for forget password requests, whereas the 8 character token is used to login
an Author into the page
Writes the current Symphony Configuration object to a file in the CONFIG directory. This will overwrite any existing configuration file every time this function is called.
True if the Configuration object was successfully written, false otherwise