![]() |
Xataface
2.0alpha2
Xataface Application Framework
|
The main Application object that handles requests and response. More...
Public Member Functions | |
Request Context | |
Methods and Structures for getting information about the current request context. | |
| & | getQuery () |
| Returns a reference to the current query object. This is very similar to the $_GET and $_REQUEST globals except this array has been filled in with missing values. | |
| & | getQueryParam ($key) |
| Returns a query parameter. | |
| & | getResultSet () |
| Loads the current result set. | |
| & | getRecord () |
| Gets the current record based on the current query. | |
| getRecordContext ($id=null) | |
| Returns the related record that forms a context for the specified record id. A context is provided so that we can tell if a record is being viewed through the lense of a related record. This can affect things like the permissions, bread-crumbs, and other navigation items. It allows us to tell where we are and where we came from. | |
| addRecordContext (Dataface_RelatedRecord $rec) | |
| Adds a related record to the current context. This provides a lense through which to view the destination records of this related record so that their permissions are evaluated as if they are part of the relationship. | |
| clearRecordContext () | |
| Clears the current record context. The record context is a set of related records that are meant to be used as a lense through which to view any destination records of any related record in the set. | |
| recordLoaded () | |
| Checks is the current record has been loaded yet. | |
| & | getAction () |
| Gets the settings array for the current action as specified by the -action parameter of the current query. | |
| getSearchTarget (array $action=null) | |
| Gets the name of the action that should be used as a search target from the given action context. If $action is omitted, then the current action (specified by the -action query parameter) will be used as the current context. | |
Event Handling | |
Methods for dealing with the dispatch of events. | |
| fireEvent ($name, $params=null) | |
| Fires an event to all event listeners. | |
| registerEventListener ($name, $callback) | |
| Registers an event listener to respond to events of a certain type. | |
| unregisterEventListener ($name, $callback) | |
| Unregisters an event listener. | |
| getEventListeners ($name=null) | |
| Gets a list of the callbacks that are registered for a given event. | |
Delegate Class | |
Methods for obtaining and working with the delegate class. | |
| & | getDelegate () |
| Returns a reference to the delegate object for this application. The delegate object can be used to define custom functionality for the application. | |
Permissions | |
Method wrappers for working with permissions. | |
| getPermissions ($params=array()) | |
| Returns the permissions that are currently available to the user in the current context. If we are in browse mode then permissions are checked against the current record. Otherwise, permissions are checked against the table. | |
| checkPermission ($perm) | |
| Checks if a permission is granted in the current context. | |
Custom Pages | |
Methods for working with custom pages. These are seldom used and are not the recommended way to make actions in Xataface. | |
| & | getCustomPages () |
| PHP files located in the 'pages' directory of the site are considered to be custom pages. Passing the GET parameter -action=custom_<pagename> will cause the Application controller to display the page <pagename>.php from the pages directory. This method just returns an array of full paths to the custom pages that are available in the 'pages' directory. | |
| getCustomPagePath ($name) | |
| Obtains the full path (read for inclusion) of the custom page with name $name. | |
| getCustomPageLabel ($name) | |
| Obtains the label for a custom page. The label is the same as the name except with capitalization of words and replacement of underscores with spaces. | |
Data Fields | |
| const | EX_FAILED_TO_CREATE_SESSION_DIR = 5500 |
| $redirectHandler = null | |
| An object that implements a method named 'redirect' that is supposed to handle requests to redirect to a new page. This gives an opportunity to suppress redirects or handle them differently inline. This is helpful if you're loading Xataface from a cron script or another application and need to prevent redirects. | |
| $rawQuery | |
| $prefs | |
| User preferences matrix. | |
Languages | |
| getLanguage ($langCode) | |
| Returns the language associated with a given language code. | |
| getLanguageCode ($locale) | |
| Returns the Xataface language code for a particular locale. E.g. zh_CN would return zh, while zh_TW would return zt. | |
| getAvailableLanguages () | |
| Returns an array of all available languages in the application. This is derived from all languages listed in the [languages] section of the conf.ini file. | |
Configuration & Initialization | |
Methods and Data Structures for Storing and Accessing Configuration. | |
| $_conf | |
| A configuration array to store configuration information. | |
| db () | |
| Returns MySQL connection resource. | |
| Dataface_Application ($conf=null) | |
| Constructor. Do not use this. getInstance() instead. | |
| & | conf () |
| Returns the config array as loaded from the conf.ini file, except that it opens up the opportunity for the delegate class to load values into the config using its own conf() method. | |
| getMySQLMajorVersion () | |
| Get the mysql major version number of MySQL. returns int. | |
| getPageTitle () | |
| setPageTitle ($title) | |
| getSiteTitle () | |
| Gets the site title. | |
| static & | getInstance ($conf=null) |
| Returns reference to the singleton instance of this class. | |
Session Handling | |
Methods and data structures for dealing with Session Handling and authentication. | |
| saveMessage ($str) | |
| Sets a message to be displayed as an info/alert the next time a page is rendered. This is handy if your action is performing some funcitons and then redirecting to a new page on complete - and you want the message to be displayed on the other page. | |
| enableSessions () | |
| Sets the cookie that causes sessions to be enabled by default. In order to maximize performance Xataface will try not to start a session until it absolutely has to . This allows public sites to not rack up huge amounts of Session files unnecessarily. | |
| disableSessions () | |
| Unsets the cookie that causes sessions to be enabled by default. Despite the name, this doesn't actually disable sessions. Sessions will still be enabled when they are needed, eg for login. This will just enable them always by default. | |
| sessionEnabled () | |
| Checks if sessions are enabled by default. | |
| startSession ($conf=null) | |
| Starts a session if one does not already exist. If you are writing code that needs to use session data it is a good idea to explicitly call this before doing anything with the $_SESSION array. It is safe to call this multiple times. | |
| & | getAuthenticationTool () |
| Obtains reference to the authentication tool. | |
Template & UI Interaction | |
Methods for customizing the output. This includes error messages, and inclusion of content in the head of the document. | |
| addHeadContent ($content) | |
| Adds some content meant to be inserted in the head of the application. | |
| getNavItem ($key, $label=null) | |
| Returns the nav item info for a key. This is a wrapper around the nav items defined in the [_tables] section of the conf.ini file. | |
| isNavItemSelected ($key) | |
| Checks whether the specified nav item is currently selected. This is used by the default implementation of getNavItem() and it an be used also in custom implementations. It can also be overridden by the application delegate class method of the same name. | |
| addError ($err) | |
| Adds an error to be displayed in the UI in the messages block. | |
| numErrors () | |
| Returns the number of errors that are to be displayed to the user in the messages block. | |
| getErrors () | |
| Returns an array of the errors that are set to be displayed to the user in the messages block. | |
| addMessage ($msg) | |
| Adds a message to be displayed in the messages block. | |
| getMessages () | |
Gets the messages that are to be displayed in the messages block. This will look in multiple sources for possible messages to display. It will include the following:
| |
| clearMessages () | |
| Clears all of the message to be displayed. | |
| numMessages () | |
| Returns the number of messages to be displayed to the user. | |
| static & | getResponse () |
| Returns the response array used for compiling response. The response may include messages that need to be displayed to the screen as an alert. Currently the response array only includes a single key: –msg. | |
Request Handling | |
Methods for handling the main requests. These methods are responsible for doing the heaving lifting of displaying a page. | |
| handleRequest ($disableCache=false) | |
Handle a request. This method is the starting point for all Dataface application requests. It will delegate the request to the appropriate handler. The order of delegation is as follows:
| |
| display ($main_content_only=false, $disableCache=false) | |
| Displays the Dataface application. | |
Utility Functions | |
Useful functions that are informed by the current context to provide useful functionality to the application as a whole. | |
| $_parseStringContext = array() | |
| parseString ($expression, $context=null) | |
| Evaluates a string expression replacing PHP variables with appropriate values in the current record. | |
| testCondition ($condition, $context=null) | |
| Tests an expression for a boolean result. This is primarly used by the condition directive of actions to be able to evaluate boolean expressions to determine if an action should be visible or not. | |
| url ($query, $useContext=true, $forceContext=false) | |
| Builds a link to somewhere in the application. This will maintain the existing query information. | |
| registerUrlFilter ($filter) | |
| Registers a filter that acts on URLs that are build with link builder. This allows modules to affect URLs as they are built to add, remove, or change parameters. | |
| filterUrl ($url) | |
| Filters a URL to add the current table and apply any filters that have been registered using registerUrlFilter() | |
| redirect ($url) | |
| Redirects the browser to a particular URL. Using this method rather than using a Location HTTP header directly is preferred as it allows modules to hook in to provide their own redirect handler to override the redirect. | |
The main Application object that handles requests and response.
This is the one object that is presumed to always exist in a Dataface request.
Usage in the index.php file or entry point of an application. In this context, the application is merely loaded and called upon to display the application.
In the above example we're exploiting the fact that df_init() returns the application object so we can call Dataface_Application::display() using method chaining.
Always use the Dataface_Application::getInstance() to obtain a reference to the Dataface_Application object. Never use the constructor directly.
The most common use of the application object is to get a reference to the current request parameters. Use Dataface_Application::getQuery() to get this as an associative array.
Each HTTP request should resolve to context which includes a current record. The current record is decided by Xataface URL Conventions. It will either be decided by the -recordid parameter, or the current filter combined with the -cursor parameter (although there are some other possiblities.
Definition at line 135 of file Application.php.
| addError | ( | $err | ) |
Adds an error to be displayed in the UI in the messages block.
| PEAR_Error | $err | The error that is being added. |
Definition at line 1834 of file Application.php.
| addHeadContent | ( | $content | ) |
Adds some content meant to be inserted in the head of the application.
| string | $content |
Definition at line 1752 of file Application.php.
| addMessage | ( | $msg | ) |
Adds a message to be displayed in the messages block.
| string | $msg | The messag to be displayed. |
Definition at line 1867 of file Application.php.
| addRecordContext | ( | Dataface_RelatedRecord | $rec | ) |
Adds a related record to the current context. This provides a lense through which to view the destination records of this related record so that their permissions are evaluated as if they are part of the relationship.
| Dataface_RelatedRecord | $rec | The related record to add for context. |
Definition at line 1339 of file Application.php.
| checkPermission | ( | $perm | ) |
Checks if a permission is granted in the current context.
This is essentially a wrapper around the getPermissions() method that goes on to check for the existence of a permission.
| string | $perm | The name of a permission to check. |
Definition at line 2983 of file Application.php.
| clearMessages | ( | ) |
Clears all of the message to be displayed.
Definition at line 1900 of file Application.php.
| clearRecordContext | ( | ) |
Clears the current record context. The record context is a set of related records that are meant to be used as a lense through which to view any destination records of any related record in the set.
Definition at line 1359 of file Application.php.
| & conf | ( | ) |
Returns the config array as loaded from the conf.ini file, except that it opens up the opportunity for the delegate class to load values into the config using its own conf() method.
This is useful if an application wants to store config information in the database and still make it available to the application.
Definition at line 1055 of file Application.php.
| Dataface_Application | ( | $conf = null | ) |
Constructor. Do not use this. getInstance() instead.
The garbage collector threshold is the number of seconds that "garbage" can exist for before it is deleted. Examples of "garbage" include import tables (ie: temporary tables created as an intermediate point to importing data).
Definition at line 526 of file Application.php.
| db | ( | ) |
Returns MySQL connection resource.
Definition at line 516 of file Application.php.
| disableSessions | ( | ) |
Unsets the cookie that causes sessions to be enabled by default. Despite the name, this doesn't actually disable sessions. Sessions will still be enabled when they are needed, eg for login. This will just enable them always by default.
Definition at line 1517 of file Application.php.
| display | ( | $main_content_only = false, |
|
$disableCache = false |
|||
| ) |
Displays the Dataface application.
| boolean | $main_content_only | Whether to only show the main content or to show the full page with header and footer. This parameter is not respected by many of the current templates and may be removed in later releases. |
| boolean | $disableCache | Whether to disable the output cache. It is enabled by default. |
Definition at line 2362 of file Application.php.
| enableSessions | ( | ) |
Sets the cookie that causes sessions to be enabled by default. In order to maximize performance Xataface will try not to start a session until it absolutely has to . This allows public sites to not rack up huge amounts of Session files unnecessarily.
Definition at line 1504 of file Application.php.
| filterUrl | ( | $url | ) |
Filters a URL to add the current table and apply any filters that have been registered using registerUrlFilter()
| string | $url | The URL to be filtered. |
Definition at line 2834 of file Application.php.
| fireEvent | ( | $name, | |
$params = null |
|||
| ) |
Fires an event to all event listeners.
| string | $name | The name of the event. e.g. afterInsert |
| array | $params | Array of parameters to pass to the event listener. |
Definition at line 1957 of file Application.php.
| & getAction | ( | ) |
Gets the settings array for the current action as specified by the -action parameter of the current query.
Definition at line 1385 of file Application.php.
| & getAuthenticationTool | ( | ) |
Obtains reference to the authentication tool.
Definition at line 1699 of file Application.php.
| getAvailableLanguages | ( | ) |
Returns an array of all available languages in the application. This is derived from all languages listed in the [languages] section of the conf.ini file.
Definition at line 486 of file Application.php.
| getCustomPageLabel | ( | $name | ) |
Obtains the label for a custom page. The label is the same as the name except with capitalization of words and replacement of underscores with spaces.
| string | $name | The custom page name. |
Definition at line 3104 of file Application.php.
| getCustomPagePath | ( | $name | ) |
Obtains the full path (read for inclusion) of the custom page with name $name.
| string | $name | The name of a custom page. |
Definition at line 3091 of file Application.php.
| & getCustomPages | ( | ) |
PHP files located in the 'pages' directory of the site are considered to be custom pages. Passing the GET parameter -action=custom_<pagename> will cause the Application controller to display the page <pagename>.php from the pages directory. This method just returns an array of full paths to the custom pages that are available in the 'pages' directory.
Definition at line 3064 of file Application.php.
| & getDelegate | ( | ) |
Returns a reference to the delegate object for this application. The delegate object can be used to define custom functionality for the application.
Definition at line 2905 of file Application.php.
| getErrors | ( | ) |
Returns an array of the errors that are set to be displayed to the user in the messages block.
Definition at line 1855 of file Application.php.
| getEventListeners | ( | $name = null | ) |
Gets a list of the callbacks that are registered for a given event.
| $name | The name of the event for which the callbacks are registered. |
Definition at line 2002 of file Application.php.
|
static |
Returns reference to the singleton instance of this class.
| array | $conf | Optional configuration associative array that matches the stucture of the conf.ini file. This parameter will only be considered the first time this method is called in the request. |
Definition at line 1029 of file Application.php.
| getLanguage | ( | $langCode | ) |
Returns the language associated with a given language code.
| string | $langCode | The 2-digit xataface language code. May be non-standard. |
Given a languages section in your conf.ini file that resembles:
Definition at line 423 of file Application.php.
| getLanguageCode | ( | $locale | ) |
Returns the Xataface language code for a particular locale. E.g. zh_CN would return zh, while zh_TW would return zt.
| string | $locale | A local in the form <lang>_<COUNTRY>. E.g. en_US or zh_CN |
Definition at line 449 of file Application.php.
| getMessages | ( | ) |
Gets the messages that are to be displayed in the messages block. This will look in multiple sources for possible messages to display. It will include the following:
Definition at line 1882 of file Application.php.
| getMySQLMajorVersion | ( | ) |
Get the mysql major version number of MySQL. returns int.
Definition at line 1087 of file Application.php.
| getNavItem | ( | $key, | |
$label = null |
|||
| ) |
Returns the nav item info for a key. This is a wrapper around the nav items defined in the [_tables] section of the conf.ini file.
This can be overridden using the Application Delegate class method of the same name.
| string | $key | The key of the nav item. This would be the table name if using the traditional simple table nav items. |
| string | $label | The label for the nav item. This would be the table label if using the traditional simple table nav items. |
Definition at line 1777 of file Application.php.
| getPageTitle | ( | ) |
Definition at line 1095 of file Application.php.
| getPermissions | ( | $params = array() | ) |
Returns the permissions that are currently available to the user in the current context. If we are in browse mode then permissions are checked against the current record. Otherwise, permissions are checked against the table.
This will first try to get the permissions on the current record (as retrieved via getRecord()), and if no record is currently selected, it will get the permissions on the current table.
| array | $params | Parameters that can be passed to getPermissions to specify a particular field or relationship. |
Definition at line 2953 of file Application.php.
| & getQuery | ( | ) |
Returns a reference to the current query object. This is very similar to the $_GET and $_REQUEST globals except this array has been filled in with missing values.
Definition at line 1166 of file Application.php.
| & getQueryParam | ( | $key | ) |
Returns a query parameter.
| string | $key | The query parameter to obtain. This should omit the leading '-' in the parameter name. E.g. Instead of '-action' this will be 'action'. |
Output:
Definition at line 1193 of file Application.php.
| & getRecord | ( | ) |
Gets the current record based on the current query.
Given the query:
We have
Definition at line 1259 of file Application.php.
| getRecordContext | ( | $id = null | ) |
Returns the related record that forms a context for the specified record id. A context is provided so that we can tell if a record is being viewed through the lense of a related record. This can affect things like the permissions, bread-crumbs, and other navigation items. It allows us to tell where we are and where we came from.
| string | $id | The record ID to check for context. |
Definition at line 1302 of file Application.php.
|
static |
Returns the response array used for compiling response. The response may include messages that need to be displayed to the screen as an alert. Currently the response array only includes a single key: –msg.
Definition at line 1926 of file Application.php.
| & getResultSet | ( | ) |
Loads the current result set.
Definition at line 1206 of file Application.php.
| getSearchTarget | ( | array | $action = null | ) |
Gets the name of the action that should be used as a search target from the given action context. If $action is omitted, then the current action (specified by the -action query parameter) will be used as the current context.
This method is used by the find form and the search form to figure out which action should be used to show the search results when performing a find. Before this method, searches would always go to the list view, but as the list of modules grow, there are many other actions that might be appropriate for showing search results. Most notably, if you are viewing an action that "lists" a found set and you perform a search, you would expect to remain in the action/view from which you initiated the search. Previously they would have been kicked back to list view, which may not be desirable.
search_target directive is set, then that value will be used. default_search_target directive of the conf.ini file is set, then its value will be used. list will be used if nothing else was specified. | array | $action | The action definition associative array, or null. If null is provided, then the current action (as specified by $query['-action'] will be used). |
Definition at line 1429 of file Application.php.
| getSiteTitle | ( | ) |
Gets the site title.
If $app->_conf['title'] is set then this will just return that. If not it will determine an appropriate title based on the current record and the current table.
Definition at line 1117 of file Application.php.
| handleRequest | ( | $disableCache = false | ) |
Handle a request. This method is the starting point for all Dataface application requests. It will delegate the request to the appropriate handler. The order of delegation is as follows:
b. <site url>="">/actions b. <dataface url>="">/actions
| boolean | $disableCache | Whether to disable the cache or not for this request. |
Definition at line 2052 of file Application.php.
| isNavItemSelected | ( | $key | ) |
Checks whether the specified nav item is currently selected. This is used by the default implementation of getNavItem() and it an be used also in custom implementations. It can also be overridden by the application delegate class method of the same name.
| string | $key | The nav item key. Traditionally the table name if using simple table navigation items. |
Definition at line 1811 of file Application.php.
| numErrors | ( | ) |
Returns the number of errors that are to be displayed to the user in the messages block.
Definition at line 1846 of file Application.php.
| numMessages | ( | ) |
Returns the number of messages to be displayed to the user.
Definition at line 1908 of file Application.php.
| parseString | ( | $expression, | |
$context = null |
|||
| ) |
Evaluates a string expression replacing PHP variables with appropriate values in the current record.
| string | $expression | A string containing PHP variables that need to be evaluated. |
| Dataface_Record | $context | A Dataface_Record, Dataface_RelatedRecord object, or array whose values are treated as local variables when evaluating the expression. |
| Variable | Type | Description |
|---|---|---|
| $site_url | String | The Site URL (i.e. DATAFACE_SITE_URL). This includes the URL to the folder containing the application. It doesn't include the index.php file. |
| $site_href | String | The Site HREF (i.e. DATAFACE_SITE_HREF). This is the URL to the index.php file. |
| $dataface_url | String | The URL to the Xataface directory. |
| $table | String | The name of the current table. |
| $tableObj | Dataface_Table | Reference to the Dataface_Table object encapsulating the current table. |
| $query | array | The current query array. See getQuery() |
| $resultSet | Dataface_QueryTool | The current query result set. See getResultSet() |
| $record | Dataface_Record | The current record. This may be obtained from the 'record' key of the $context parameter. If omitted, then this will be the result of getRecord() |
| $relationship | Dataface_Relationship | The current relationship. This may be passed as the 'relationship' key of the $context parameter. If omitted then it is loaded from the current table and the $query['-relationship'] parameter. |
Definition at line 2578 of file Application.php.
| recordLoaded | ( | ) |
Checks is the current record has been loaded yet.
Definition at line 1374 of file Application.php.
| redirect | ( | $url | ) |
Redirects the browser to a particular URL. Using this method rather than using a Location HTTP header directly is preferred as it allows modules to hook in to provide their own redirect handler to override the redirect.
| string | $url | The URL to redirect to. |
Definition at line 2872 of file Application.php.
| registerEventListener | ( | $name, | |
| $callback | |||
| ) |
Registers an event listener to respond to events of a certain type.
| string | $name | The name of the event to register for. e.g. afterInsert |
| mixed | $callback | A standard PHP callback. Either a function name or an array of the form array(&$object,'method-name'). |
Definition at line 1976 of file Application.php.
| registerUrlFilter | ( | $filter | ) |
Registers a filter that acts on URLs that are build with link builder. This allows modules to affect URLs as they are built to add, remove, or change parameters.
| callback | $filter | A callback function that follow the PHP callback conventions and call be called with call_user_func. This should accept a string as a input and provide the modified string as output. |
A filter to add -foo=1 to the end of all URLs:
Definition at line 2820 of file Application.php.
| saveMessage | ( | $str | ) |
Sets a message to be displayed as an info/alert the next time a page is rendered. This is handy if your action is performing some funcitons and then redirecting to a new page on complete - and you want the message to be displayed on the other page.
| string | $str | The message that should be displayed. |
Definition at line 1491 of file Application.php.
| sessionEnabled | ( | ) |
Checks if sessions are enabled by default.
Definition at line 1529 of file Application.php.
| setPageTitle | ( | $title | ) |
Definition at line 1103 of file Application.php.
| startSession | ( | $conf = null | ) |
Starts a session if one does not already exist. If you are writing code that needs to use session data it is a good idea to explicitly call this before doing anything with the $_SESSION array. It is safe to call this multiple times.
| array | $conf | Optional configuration data that should follow the format of $app->_conf['_auth'] |
Definition at line 1544 of file Application.php.
| testCondition | ( | $condition, | |
$context = null |
|||
| ) |
Tests an expression for a boolean result. This is primarly used by the condition directive of actions to be able to evaluate boolean expressions to determine if an action should be visible or not.
| string | $condition | A string that is executed in the sandbox context. |
| array | $context | Extra context information to include. This does not allow arbitrary variables to be added to the context, only specific ones. |
| Variable | Type | Description |
|---|---|---|
| $site_url | String | The Site URL (i.e. DATAFACE_SITE_URL). This includes the URL to the folder containing the application. It doesn't include the index.php file. |
| $site_href | String | The Site HREF (i.e. DATAFACE_SITE_HREF). This is the URL to the index.php file. |
| $dataface_url | String | The URL to the Xataface directory. |
| $table | String | The name of the current table. |
| $tableObj | Dataface_Table | Reference to the Dataface_Table object encapsulating the current table. |
| $query | array | The current query array. See getQuery() |
| $resultSet | Dataface_QueryTool | The current query result set. See getResultSet() |
| $record | Dataface_Record | The current record. This may be obtained from the 'record' key of the $context parameter. If omitted, then this will be the result of getRecord() |
| $relationship | Dataface_Relationship | The current relationship. This may be passed as the 'relationship' key of the $context parameter. If omitted then it is loaded from the current table and the $query['-relationship'] parameter. |
Definition at line 2714 of file Application.php.
| unregisterEventListener | ( | $name, | |
| $callback | |||
| ) |
Unregisters an event listener.
Definition at line 1988 of file Application.php.
| url | ( | $query, | |
$useContext = true, |
|||
$forceContext = false |
|||
| ) |
Builds a link to somewhere in the application. This will maintain the existing query information.
| mixed | $query | Either a query string or a query array. |
| boolean | $useContext | Whether to use the existing context variables or not. |
| boolean | $forceContext | Whether to force context. |
(Actually this isn't entirely correct... the entire context will also be included and Xataface calculates some default context parameters at the beginning of every request so the actually result will include parameters like -skip, -limit, -cursor, etc.. as well).
Definition at line 2776 of file Application.php.
| $_conf |
A configuration array to store configuration information.
Definition at line 521 of file Application.php.
| $_parseStringContext = array() |
Definition at line 2510 of file Application.php.
| $prefs |
User preferences matrix.
Definition at line 274 of file Application.php.
| $rawQuery |
Definition at line 232 of file Application.php.
| $redirectHandler = null |
An object that implements a method named 'redirect' that is supposed to handle requests to redirect to a new page. This gives an opportunity to suppress redirects or handle them differently inline. This is helpful if you're loading Xataface from a cron script or another application and need to prevent redirects.
Note that if your handler does not either throw an exception or exit execution, then Xataface will throw a Dataface_Application_RedirectException which can be caught higher up the call stack.
Definition at line 165 of file Application.php.
| const EX_FAILED_TO_CREATE_SESSION_DIR = 5500 |
Definition at line 137 of file Application.php.
1.8.1.2