Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Helper_InlineScript Class Reference

Public Member Functions

 inlineScript ($mode=Zend_View_Helper_HeadScript::FILE, $spec=null, $placement= 'APPEND', array $attrs=array(), $type= 'text/javascript')
 Return InlineScript object.
 
- Public Member Functions inherited from Zend_View_Helper_HeadScript
 __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.
 
- Public Member Functions inherited from Zend_View_Helper_Placeholder_Container_Standalone
 __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.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Attributes

 $_regKey = 'Zend_View_Helper_InlineScript'
 
- Protected Attributes inherited from Zend_View_Helper_HeadScript
 $_regKey = 'Zend_View_Helper_HeadScript'
 
 $_arbitraryAttributes = false
 
 $_captureLock
 
 $_captureScriptType = null
 
 $_captureScriptAttrs = null
 
 $_captureType
 
 $_optionalAttributes
 
 $_requiredAttributes = array('type')
 
- Protected Attributes inherited from Zend_View_Helper_Placeholder_Container_Standalone
 $_container
 
 $_registry
 
 $_regKey
 
 $_autoEscape = true
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_HeadScript
const FILE = 'FILE'
 #@+ Script type contants string
 
const SCRIPT = 'SCRIPT'
 
 $useCdata = false
 
- Protected Member Functions inherited from Zend_View_Helper_HeadScript
 _isDuplicate ($file)
 Is the file specified a duplicate?
 
 _isValid ($value)
 Is the script provided valid?
 

Member Function Documentation

inlineScript (   $mode = Zend_View_Helper_HeadScript::FILE,
  $spec = null,
  $placement = 'APPEND',
array  $attrs = array(),
  $type = 'text/javascript' 
)

Return InlineScript object.

Returns InlineScript helper object; optionally, allows specifying a script or script file to include.

Parameters
string$modeScript or file
string$specScript/url
string$placementAppend, prepend, or set
array$attrsArray of script attributes
string$typeScript type and/or array of script attributes
Returns
Zend_View_Helper_InlineScript

Member Data Documentation

$_regKey = 'Zend_View_Helper_InlineScript'
protected