API Documentation

View/Helper/HeadStyle.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id: HeadStyle.php 20104 2010-01-06 21:26:01Z matthew $
Classes
Zend_View_Helper_HeadStyle

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_View_Helper_HeadStyle

Extends from
Zend_View_Helper_Placeholder_Container_Standalone
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
uses
Zend_View_Helper_Placeholder_Container_Standalone
Properties
$_regKey
$_optionalAttributes
$_mediaTypes
$_captureAttrs
$_captureLock
$_captureType
Methods
__construct
headStyle
__call
_isValid
append
offsetSet
prepend
set
captureStart
captureEnd
itemToString
toString
createData

Description

Helper for setting and retrieving stylesheets

Properties

$_captureAttrs

string $_captureAttrs = 'null'

Capture type and/or attributes (used for hinting during capture)

Details

$_captureAttrs
string
visibility
protected
default
null
final
false
static
false

$_captureLock

bool $_captureLock = ''

Capture lock

Details

$_captureLock
bool
visibility
protected
default
final
false
static
false

$_captureType

string $_captureType = ''

Capture type (append, prepend, set)

Details

$_captureType
string
visibility
protected
default
final
false
static
false

$_mediaTypes

array $_mediaTypes = 'array'

Allowed media types

Details

$_mediaTypes
array
visibility
protected
default
array
final
false
static
false

$_optionalAttributes

array $_optionalAttributes = 'array'

Allowed optional attributes

Details

$_optionalAttributes
array
visibility
protected
default
array
final
false
static
false

$_regKey

string $_regKey = 'Zend_View_Helper_HeadStyle'

Registry key for placeholder

Details

$_regKey
string
visibility
protected
default
Zend_View_Helper_HeadStyle
final
false
static
false

Methods

__call

__call( string $method, array $args ) : void

Overload method calls

Allows the following method calls: - appendStyle($content, $attributes = array()) - offsetSetStyle($index, $content, $attributes = array()) - prependStyle($content, $attributes = array()) - setStyle($content, $attributes = array())

Arguments
$method
string
$args
array
Details
visibility
public
final
false
static
false
throws
When no $content provided or invalid method

__construct

__construct( ) : void

Constructor

Set separator to PHP_EOL.

Details
visibility
public
final
false
static
false

_isValid

_isValid( mixed $value ) : boolean

Determine if a value is a valid style tag

Arguments
$value
mixed
Output
boolean
Details
visibility
protected
final
false
static
false

append

append( mixed $value ) : void

Override append to enforce style creation

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

captureEnd

captureEnd( ) : void

End capture action and store

Details
visibility
public
final
false
static
false

captureStart

captureStart(  $type = Zend_View_Helper_Placeholder_Container_Abstract,  $attrs = null ) : void

Start capture action

Arguments
$type
$attrs
Details
visibility
public
final
false
static
false

createData

createData( string $content, array $attributes ) : stdClass

Create data item for use in stack

Arguments
$content
string
$attributes
array
Output
stdClass
Details
visibility
public
final
false
static
false

headStyle

headStyle( string $content = null, string $placement = APPEND, string|array $attributes = array ) : Zend_View_Helper_HeadStyle

Return headStyle object

Returns headStyle helper object; optionally, allows specifying

Arguments
$content
string
Stylesheet contents
$placement
string
Append, prepend, or set
$attributes
stringarray
Optional attributes to utilize
Details
visibility
public
final
false
static
false

itemToString

itemToString( stdClass $item, string $indent ) : string

Convert content and attributes into valid style tag

Arguments
$item
stdClass
Item to render
$indent
string
Indentation to use
Output
string
Details
visibility
public
final
false
static
false

offsetSet

offsetSet( string|int $index, mixed $value ) : void

Override offsetSet to enforce style creation

Arguments
$index
stringint
$value
mixed
Details
visibility
public
final
false
static
false

prepend

prepend( mixed $value ) : void

Override prepend to enforce style creation

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

set

set( mixed $value ) : void

Override set to enforce style creation

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

toString

toString( string|int $indent = null ) : string

Create string representation of placeholder

Arguments
$indent
stringint
Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.