| core_html

# Class: Bs_HeadCollector Source Location: /core/html/Bs_HeadCollector.class.php
### Class Overview
    Bs_Object
       |
       --Bs_HeadCollector
dependencies: none #### Author(s): andrej arn <at blueshoes dot org> #### Version: 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:47:48 $ #### Copyright: blueshoes.org | ### Variables $_includeOnce $_intoHead $_onLoadCode | ### Methods Bs_HeadCollector addIncludeOnce addIntoHead addOnLoadCode spit
### Inherited Variables | ### Inherited Methods #### Class: Bs_Object Bs_Object::Bs_Object() Bs_Object::getErrors() Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack. Bs_Object::getLastError() Basic error handling: Get last error string from the global Bs_Error-error stack. Bs_Object::getLastErrors() Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors(). Bs_Object::persist() Persists this object by serializing it and saving it to a file with unique name. Bs_Object::setError() Basic error handling: Push an error string on the global Bs_Error-error stack. Bs_Object::toHtml() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::toString() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::unpersist() Fetches an object that was persisted with persist()
### Class Details [line 28] dependencies: none #### Tags:
pattern: | singleton: (pseudostatic)
version: | 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:47:48 $
access: | public
since: | bs4.3
copyright: | blueshoes.org
author: | andrej arn <at blueshoes dot org>
[ Top ] ### Class Variables #### $_includeOnce = array() [line 32]
Type: | mixed
[ Top ] #### $_intoHead = array() [line 33]
Type: | mixed
[ Top ] #### $_onLoadCode = array() [line 31]
Type: | mixed
[ Top ] ### Class Methods ### constructor Bs_HeadCollector [line 39]
`Bs_HeadCollector Bs_HeadCollector( )`
constructor [ Top ] ### method addIncludeOnce [line 113]
`void addIncludeOnce( mixed $url, mixed $code)`
#### Tags:
access: | public
#### Parameters:
mixed | $code | (string or array)
[ Top ] ### method addIntoHead [line 131]
`void addIntoHead( string $content)`
use this to add anything between the <head></head> tags. this can be meta tags, css, javascript, whatever you like. #### Tags:
access: | public
#### Parameters:
string | $content |
[ Top ] ### method addOnLoadCode [line 100]
`void addOnLoadCode( mixed $code)`
#### Tags:
access: | public
#### Parameters:
mixed | $code | (string or array)
[ Top ] ### method spit [line 48]
`string spit( [int $what = BS_HEADCOLLECTOR_DEFAULT])`
#### Tags:
return: | (html code)
access: | public
#### Parameters:
int | $what |
[ Top ] Documentation generated on Mon, 29 Dec 2003 21:10:48 +0100 by phpDocumentor 1.2.3