TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
html Class Reference

Titan I/O Buffered HTML Output Class. More...

Inheritance diagram for html:
ml

Public Member Functions

 __construct ()
 
 license ($copy_year= '2015', $company_name= '', $company_website= '')
 
 copyright ()
 
 snippet ()
 
 hidden ($var, $val)
 
 select ($sattr, $options, $value= '')
 
 nocache ($returnonly=false)
 
 refresh ($time)
 
 css ($list, $attributes=false, $buffer=true)
 
 script ($list, $attributes=false, $buffer=true)
 
- Public Member Functions inherited from ml
 __construct ()
 
 __call ($tag_name, array $arguments)
 
 instack ($tag_name, $nested=false)
 
 mark ($label)
 
 wrap ($label)
 
 buffer ($content, $newline=false)
 
 open ($tag_name, $attributes= '')
 
 close ($tag_name)
 
 tag ($tag_name, $content, $attributes= '')
 
 void ($tag_name, $attributes= '')
 
 serialize ($var, $value)
 
 unserialize ($xml_string)
 
 reset_stack ()
 
 clear ()
 
 display ()
 
 complete ($display=true)
 

Protected Attributes

 $noclose
 array List of tags that open normally but do not close (e.g. "<meta>")
 
 $voidtags
 array List of tags that are void tags (e.g. "<foo />")
 
 $cancels
 array List of tag cancels tag key/value pairs (e.g. "body" cancels "head")
 
 $dependencies
 array List of tag dependencies in key/value pairs (e.g. "body" requires "html")
 
 $attr
 array List of default tag attributes (setting an attribute to false prevents its inclusion)
 
- Protected Attributes inherited from ml
 $obuff = false
 Output Buffer Class.
 
 $is_void = false
 Is the current tag a void tag?
 
 $in_tag = false
 Is the current tag being handled by $this->tag()?
 
 $use_newline = false
 $this->tag(): Use standard newline?
 
 $use_stack = true
 Should the current tag use the stack?
 
 $pre = ''
 List of content to include before opening a tag in tag/content pairs.
 
 $noclose = array()
 List of tags that open normally but do not close (e.g. "<meta>")
 
 $voidtags = array()
 List of tags that are void tags (e.g. "<foo />")
 
 $cancels = array()
 List of tag cancels in key/value pairs (e.g. "body" cancels "head")
 
 $dependencies = array()
 List of tag dependencies in key/value pairs (e.g. "body" requires "html")
 
 $attr = array()
 List of default tag attributes (setting an attribute to false prevents its inclusion)
 
 $ns_prefix = ''
 XML namespace prefix.
 

Additional Inherited Members

- Data Fields inherited from ml
 $stack = false
 Stack Class for tag stack.
 
 $is_buffered = true
 Should the output be buffered?
 
 $indent = 0
 Output indent level (for pretty printing)
 
 $tag_template
 Templates for tag generation.
 
 $replacements = array()
 For serialize() - Replacement value pairs.
 
 $skip_replace = array()
 For serialize() - List of vars to skip replacement.
 

Detailed Description

Titan I/O Buffered HTML Output Class.

Class: \tl\output\html

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Constructor & Destructor Documentation

__construct ( )

Constructor

Member Function Documentation

license (   $copy_year = '2015',
  $company_name = '',
  $company_website = '' 
)

Setup copyright notices.

Parameters
string$copy_year(optional) What year should be inserted into the copyright? (default = '2013')
string$company_name(optional) Copyright Company Name (default = '')
string$company_website(optional) Copyright Company Website (default = '')
copyright ( )

Buffer the copyright

snippet ( )

Tells the class this a snippet, do not include html, head, body, etc.

hidden (   $var,
  $val 
)

Build a hidden field

Parameters
string$varThe variable
string$valThe value
select (   $sattr,
  $options,
  $value = '' 
)

Build a selecton box

Parameters
array$sattrAn array of input attributes in the form of array({attr} => {value}[[, {attr} => {value}] ...]).
array$optionsAn array of options in the form of array({value} => {description}[[, {value} => {description}] ...]).
string$value(optional) The form input default value. (default = '')
nocache (   $returnonly = false)

Add "no-cache" headers

refresh (   $time)

Add a "refresh" header

css (   $list,
  $attributes = false,
  $buffer = true 
)

Include either a CSS file or an array of CSS files

Parameters
mixed$listThe CSS file or an array of CSS files to include
array$attributes(optional) Tag attributes
bool$buffer(optional) Should the output be buffered? (default) true
script (   $list,
  $attributes = false,
  $buffer = true 
)

Include either a script file or an array of script files

Parameters
mixed$listThe script file or an array of script files to include
array$attributes(optional) Tag attributes
bool$buffer(optional) Should the output be buffered? (default) true

The documentation for this class was generated from the following file: