Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Constructor. | |
headScript ($mode=Zend_View_Helper_HeadScript::FILE, $spec=null, $placement= 'APPEND', array $attrs=array(), $type= 'text/javascript') | |
Return headScript object. | |
captureStart ($captureType=Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $type= 'text/javascript', $attrs=array()) | |
Start capture action. | |
captureEnd () | |
End capture action and store. | |
__call ($method, $args) | |
Overload method access. | |
append ($value) | |
Override append. | |
prepend ($value) | |
Override prepend. | |
set ($value) | |
Override set. | |
offsetSet ($index, $value) | |
Override offsetSet. | |
setAllowArbitraryAttributes ($flag) | |
Set flag indicating if arbitrary attributes are allowed. | |
arbitraryAttributesAllowed () | |
Are arbitrary attributes allowed? | |
itemToString ($item, $indent, $escapeStart, $escapeEnd) | |
Create script HTML. | |
toString ($indent=null) | |
Retrieve string representation. | |
createData ($type, array $attributes, $content=null) | |
Create data item containing all necessary components of script. | |
![]() | |
__construct () | |
Constructor. | |
getRegistry () | |
Retrieve registry. | |
setRegistry (Zend_View_Helper_Placeholder_Registry $registry) | |
Set registry object. | |
setAutoEscape ($autoEscape=true) | |
Set whether or not auto escaping should be used. | |
getAutoEscape () | |
Return whether autoEscaping is enabled or disabled. | |
setContainer (Zend_View_Helper_Placeholder_Container_Abstract $container) | |
Set container on which to operate. | |
getContainer () | |
Retrieve placeholder container. | |
__set ($key, $value) | |
Overloading: set property value. | |
__get ($key) | |
Overloading: retrieve property. | |
__isset ($key) | |
Overloading: check if property is set. | |
__unset ($key) | |
Overloading: unset property. | |
__call ($method, $args) | |
Overload. | |
toString () | |
String representation. | |
__toString () | |
Cast to string representation. | |
count () | |
Countable. | |
offsetExists ($offset) | |
ArrayAccess: offsetExists. | |
offsetGet ($offset) | |
ArrayAccess: offsetGet. | |
offsetSet ($offset, $value) | |
ArrayAccess: offsetSet. | |
offsetUnset ($offset) | |
ArrayAccess: offsetUnset. | |
getIterator () | |
IteratorAggregate: get Iterator. | |
![]() | |
setView (Zend_View_Interface $view) | |
Set the View object. | |
direct () | |
Strategy pattern: currently unutilized. | |
Public Attributes | |
const | FILE = 'FILE' |
#@+ Script type contants string | |
const | SCRIPT = 'SCRIPT' |
$useCdata = false | |
Protected Member Functions | |
_isDuplicate ($file) | |
Is the file specified a duplicate? | |
_isValid ($value) | |
Is the script provided valid? | |
![]() | |
_escape ($string) | |
Escape a string. | |
Protected Attributes | |
$_regKey = 'Zend_View_Helper_HeadScript' | |
$_arbitraryAttributes = false | |
$_captureLock | |
$_captureScriptType = null | |
$_captureScriptAttrs = null | |
$_captureType | |
$_optionalAttributes | |
$_requiredAttributes = array('type') | |
![]() | |
$_container | |
$_registry | |
$_regKey | |
$_autoEscape = true | |
__construct | ( | ) |
Constructor.
Set separator to PHP_EOL.
__call | ( | $method, | |
$args | |||
) |
Overload method access.
Allows the following method calls:
string | $method | |
array | $args |
Zend_View_Exception | if too few arguments or invalid method |
|
protected |
Is the file specified a duplicate?
string | $file |
|
protected |
Is the script provided valid?
mixed | $value | |
string | $method |
append | ( | $value | ) |
Override append.
string | $value |
arbitraryAttributesAllowed | ( | ) |
Are arbitrary attributes allowed?
captureEnd | ( | ) |
End capture action and store.
captureStart | ( | $captureType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND , |
|
$type = 'text/javascript' , |
|||
$attrs = array() |
|||
) |
Start capture action.
mixed | $captureType | |
string | $typeOrAttrs |
createData | ( | $type, | |
array | $attributes, | ||
$content = null |
|||
) |
Create data item containing all necessary components of script.
string | $type | |
array | $attributes | |
string | $content |
headScript | ( | $mode = Zend_View_Helper_HeadScript::FILE , |
|
$spec = null , |
|||
$placement = 'APPEND' , |
|||
array | $attrs = array() , |
||
$type = 'text/javascript' |
|||
) |
Return headScript object.
Returns headScript helper object; optionally, allows specifying a script or script file to include.
string | $mode | Script or file |
string | $spec | Script/url |
string | $placement | Append, prepend, or set |
array | $attrs | Array of script attributes |
string | $type | Script type and/or array of script attributes |
itemToString | ( | $item, | |
$indent, | |||
$escapeStart, | |||
$escapeEnd | |||
) |
Create script HTML.
string | $type | |
array | $attributes | |
string | $content | |
string | int | $indent |
offsetSet | ( | $index, | |
$value | |||
) |
Override offsetSet.
string | int | $index | |
mixed | $value |
prepend | ( | $value | ) |
Override prepend.
string | $value |
set | ( | $value | ) |
Override set.
string | $value |
setAllowArbitraryAttributes | ( | $flag | ) |
Set flag indicating if arbitrary attributes are allowed.
bool | $flag |
toString | ( | $indent = null | ) |
Retrieve string representation.
string | int | $indent |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$useCdata = false |
const FILE = 'FILE' |
#@+ Script type contants string
const SCRIPT = 'SCRIPT' |