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

Class Variables

static Gumbo_Template_Header $_instance =  null [line 43]
Gumbo_Interface_List $_javascript [line 48]
Gumbo_Interface_List $_styles [line 46]

Class Methods

public static Gumbo_Interface_Special_Header instance ( ) [line 72]

Singleton Method


[ Top ]
private Gumbo_Template_Special_Header __construct ( ) [line 56]

Constructor


[ 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 getJavascript ( ) [line 218]

Returns any Javascript Files


[ Top ]
public Gumbo_Interface_List getStyles ( ) [line 210]

Returns the extra style sheets to include in the template file


[ Top ]