/var-www-hotglue/hotglue.org-test/dev/controller.inc.php File Reference

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)

Function Documentation

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.

Parameters:
array $args query-arguments array
Returns:
mixed return value of controller that was called

Definition at line 268 of file controller.inc.php.

parse_query_string (  ) 

parse the QUERY_STRING server variable

Returns:
array query-arguments array (key/value and numeric keys)

Definition at line 339 of file controller.inc.php.

register_controller ( arg0,
arg1,
func,
args = array() 
)

register a controller

Parameters:
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()).

Parameters:
string $s object (e.g. page.rev.obj)
bool $dl download file
Returns:
bool

Definition at line 397 of file controller.inc.php.

Generated on Wed Jul 11 19:43:16 2012 for hotglue by  doxygen 1.6.3