Elgg  Version 1.12
Functions
deprecated-1.12.php File Reference

Go to the source code of this file.

Functions

 set_template_handler ($function_name)
 Registers a function to handle templates. More...
 
 elgg_get_view_location ($view, $viewtype= '')
 Get the views/ directory in which the view might (or might not) be found. More...
 

Function Documentation

elgg_get_view_location (   $view,
  $viewtype = '' 
)

Get the views/ directory in which the view might (or might not) be found.

E.g. elgg_get_view_location('foo.css') might return "/path/to/mod/example/views/" but the view file itself may be at "default/foo.css" or "default/foo.css.php" within that. The function might return the core views/ directory if it doesn't know anything about the view.

Warning
This doesn't check if the file exists, but only constructs (or extracts) the path and returns it.
Parameters
string$viewThe view.
string$viewtypeThe viewtype
Returns
string

Definition at line 52 of file deprecated-1.12.php.

set_template_handler (   $function_name)

Registers a function to handle templates.

Alternative template handlers can be registered to handle all output functions. By default, elgg_view() will simply include the view file. If an alternate template handler is registered, the view name and passed $vars will be passed to the registered function, which is then responsible for generating and returning output.

Template handlers need to accept two arguments: string $view_name and array $vars.

Warning
This is experimental.
Parameters
string$function_nameThe name of the function to pass to.
Returns
bool
See also
elgg_view()

Definition at line 25 of file deprecated-1.12.php.