Class to create an empty HTML page with some default styles
package |
Webmail |
---|---|
subpackage |
View |
write(string $template = '')
string
HTML template content
__construct()
set_env(string $name, mixed $value)
string
Property name
mixed
Property value
get_pagetitle() : string
string
The page title
set_skin($skin)
load_skin($skin_path)
template_exists($name) : boolean
boolean
True if template exists
get_skin_file($file, &$skin_path = null, $add_path = null) : mixed
mixed
Relative path to the requested file or False if not found
add_gui_object($obj, $id) : void
command()
add_label()
reset()
redirect(mixed $p = array(), int $delay = 1)
mixed
Either a string with the action or url parameters as key-value pairs
int
Delay in seconds
send()
parse($name = 'main', $exit = true, $write = true)
get_js_commands() : string
string
$out
abs_url($str, $search_path = false) : string
string
raise_error(int $code, string $message)
int
Error code
string
Error message
parse_with_globals($input)
globals_callback($matches)
fix_paths($output)
file_callback($matches) : string
string
Parsed string
file_mod($file)
just_parse(string $input) : string
uses | |
---|---|
since | 0.1-rc1 |
string
string
parse_conditions(string $input) : string
string
string
check_condition($condition) : boolean
todo |
Extend this to allow real conditions, not just "set" |
---|
boolean
True if condition is met, False if not
alter_form_tag($matches)
eval_expression($expression) : mixed
mixed
Expression result
parse_xml($input) : string
todo |
Use DOM-parser to traverse template HTML Maybe a cache. |
---|
string
Altered input string
xml_command($matches) : string
string
Tag/Object content
include_php($file) : string
string
Contents of the processed file
include_script($file, $position = 'head')
add_script($script, $position = 'head')
include_css($file)
add_header(string $str)
string
HTML code
_write($templ = '', $base_path = '')
frame(array $attrib, boolean $is_contentframe = false) : string
array
HTML attributes
boolean
Register this iframe as the 'contentframe' gui object
string
IFRAME element
form_tag($attrib, $content = null) : string
string
HTML code for the form
request_form($attrib, $content = '') : string
string
HTML code for the form
current_username($attrib) : string
string
HTML code for the gui object
login_form($attrib) : string
string
HTML code for the gui object
preloader($attrib) : void
search_form($attrib) : string
string
HTML code for the gui object
charset_selector($attrib) : string
string
HTML code for the gui object
about_content($attrib)
set_pagetitle(string $title)
string
Page title
get_skin_path()
add_handler($obj, $func) : void
add_handlers($arr) : void
__get($var)
set_charset(string $charset)
To be specified in a meta tag and sent as http-header
string
Charset name
get_charset() : string
string
Output charset name
get_env(string $name) : mixed
string
Property name
mixed
Property value
nocacheing_headers()
future_expire_header($offset = 2600000)
get_edit_field($col, $value, $attrib, $type = 'text') : string
string
HTML field definition
json_serialize($input) : string
string
Serialized JSON string
JS_OBJECT_NAME
type :
js_env :
js_labels :
js_commands :
skin_paths :
template_name :
scripts_path :
script_files :
css_files :
scripts :
default_template :
header :
body :
base_path :
devel_mode :
deprecated_templates :
ajax_call :
framed :
pagetitle :
object_handlers :
browser :
app :
config :
charset :
env :