Gumbo_Template_Special_Header
Gumbo_Template_Special | --Gumbo_Template_Special_Header
Special Template Header Class
This class will represent the Header. If using HTML, it provides methods for adding Stylesheets and JavaScript dynamically. This will format two Template variables 'header_styles' and 'header_javascript'.
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 0.0.1 |
Implements interfaces:
Inherited Methods
- Gumbo_Template_Special::assign()
- Gumbo_Template_Special::assignElement()
- Gumbo_Template_Special::display()
- Gumbo_Template_Special::getElement()
- Gumbo_Template_Special::getElements()
- Gumbo_Template_Special::getEngine()
- Gumbo_Template_Special::getFile()
- Gumbo_Template_Special::getFileBasic()
- Gumbo_Template_Special::isActive()
- Gumbo_Template_Special::setEngine()
- Gumbo_Template_Special::setFile()
- Gumbo_Template_Special::setFileBasic()
- Gumbo_Template_Special::turnOff()
- Gumbo_Template_Special::turnOn()
Class Variables
static Gumbo_Template_Header $_instance = null [line 43]
Gumbo_Interface_List $_javascript [line 48]
Gumbo_Interface_List $_styles [line 46]
Class Methods
private Gumbo_Template_Special_Header __construct ( )
[line 56]
Constructor
- uses:
Gumbo_Template
[ Top ]public void addJavascript ( string $js, [bool $as_string] ) [line 180]Adds Javascript to the Header
Parameter(s):
- (string) $js :: file name or javascript text
- (bool) $as_string
[ Top ]public void addStyle ( string $file, [string $media], [string $url] ) [line 131]Adds a style sheet (path not necessary)
Parameter(s):
- (string) $file :: file name of the style sheet
- (string) $media :: media type (screen|print|etc.)
- (string) $url :: URL to style sheet
- throws:
Gumbo_Exception
[ Top ]public string fetch ( [bool $reload] ) [line 87]Returns the formatted text to the browser
Parameter(s):
- (bool) $reload :: reloads the output
[ Top ]public Gumbo_Interface_List getStyles ( ) [line 210]Returns the extra style sheets to include in the template file
[ Top ]