The head class.
The class is a special kind of page section. It contains all of the meta tags, style tags, title and other such things for the webpage. Note that this section is not just the head content, but really comprises everything which is prior to the /head tag. This might include the DTD specifier for instance.
Located in /webpage-defs.php (line 959)
RenderableObject | --page_section | --head
Charset for content of the page
The Document Type Definition for this head section
Languages used in content of the page
Meta tags array
Style settings for the webpage
Name of the stylesheet associated with the webpage
Name of the IE stylesheet
Name of the Netscape stylesheet
Title of the webpage
Inherited from page_section
page_section::$content
page_section::$script
page_section::$scriptsrc
Constructor Create a new head object.
Adds another language for the current head. Webpages might contain content in multiple languages, hence the need for a list.
Add the given content to the current style. Appends style statements to the style string, which is rendered when the page gets rendered.
This renders the head as HTML. After the title and the meta tags
are rendered, the stylesheets are next. For the stylesheets we first render the standard links, and then overlay this with the Internet Explorer stylesheet if it is defined. Finally any literal styles are rendered so they will take precedence. The scripts are rendered after the styles, and the head content comes last.
Insert a ready-made meta tag object into the metatags array.
Load given template content.
We scrape everything between the appropriate tags and use it as the template for our content.
Set the charset for this head section
Set the DTD specifier string for this head section.
Add meta tag to the section
Define the style NB: The way this is currently done, you are expected to supply your style WITHOUT style tags here.
Set the stylesheet to use. This should be a valid pathname to an existing file. The second parm is for special styles for Internet Explorer-compatible browsers.
Define the title
Use render() to render this element in your page.
This renders the field as WML.
Inherited From page_section
page_section::page_section()
page_section::add()
page_section::add_named_script()
page_section::add_popup_script()
page_section::add_script()
page_section::add_scriptsrc()
page_section::clear()
page_section::get_template()
page_section::get_trimcontent()
page_section::html()
page_section::replace()
page_section::script()
page_section::wml()
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3