Go to the source code of this file.
Functions | |
if(!isset($controllers)) | controller_create_page ($args) |
controller_edit ($args) | |
controller_default ($args) | |
controller_login ($args) | |
controller_show ($args) | |
invoke_controller ($args) | |
parse_query_string () | |
register_controller ($arg0, $arg1, $func, $args=array()) | |
serve_resource ($s, $dl) |
if (!isset($controllers)) controller_create_page | ( | $ | args | ) |
show a site where authenticated users can create new pages
Definition at line 29 of file controller.inc.php.
controller_default | ( | $ | args | ) |
this is the default (fallback) controller
it mainly invokes other controllers or sends error messages
Definition at line 137 of file controller.inc.php.
controller_edit | ( | $ | args | ) |
show a site to edit pages
Definition at line 80 of file controller.inc.php.
controller_login | ( | $ | args | ) |
promt the user to authenticate
this might be helpful as other controller's authentication seem to be only valid for the respective directory. (e.g. having privileges in '/foo/edit' does not seem to have an effect on the parent directory or any other sibling directory.
Definition at line 204 of file controller.inc.php.
controller_show | ( | $ | args | ) |
show a page
Definition at line 225 of file controller.inc.php.
invoke_controller | ( | $ | args | ) |
invoke a controller based on the query arguments given
this function does not return in case of an error.
array | $args query-arguments array |
Definition at line 268 of file controller.inc.php.
parse_query_string | ( | ) |
parse the QUERY_STRING server variable
Definition at line 339 of file controller.inc.php.
register_controller | ( | $ | arg0, | |
$ | arg1, | |||
$ | func, | |||
$ | args = array() | |||
) |
register a controller
string | $arg0 first argument of query to match (* for wildcard) | |
string | $arg1 second argument of query to match (* for widcard) | |
string | $func function name | |
array | $args optional arguments |
Definition at line 381 of file controller.inc.php.
serve_resource | ( | $ | s, | |
$ | dl | |||
) |
serve a resource associated with an object
the function might not return (e.g. when a module calls serve_file()).
string | $s object (e.g. page.rev.obj) | |
bool | $dl download file |
Definition at line 397 of file controller.inc.php.