API Documentation

View/Helper/Placeholder/Container/Abstract.php

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: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Helper_Placeholder_Container_Abstract

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_Placeholder_Container_Abstract

Extends from
ArrayObject
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
Constants
SET
APPEND
PREPEND
Properties
$_prefix
$_postfix
$_separator
$_indent
$_captureLock
$_captureType
$_captureKey
Methods
__construct
set
prepend
getValue
setPrefix
getPrefix
setPostfix
getPostfix
setSeparator
getSeparator
setIndent
getIndent
getWhitespace
captureStart
captureEnd
getKeys
nextIndex
toString
__toString

Description

Abstract class representing container for placeholder values

Constants

SET

 SET = 'SET'

Whether or not to override all contents of placeholder

Details

value
SET
const
string

APPEND

 APPEND = 'APPEND'

Whether or not to append contents to placeholder

Details

value
APPEND
const
string

PREPEND

 PREPEND = 'PREPEND'

Whether or not to prepend contents to placeholder

Details

value
PREPEND
const
string

Properties

$_captureKey

string $_captureKey = ''

Key to which to capture content

Details

$_captureKey
string
visibility
protected
default
final
false
static
false

$_captureLock

bool $_captureLock = 'false'

Whether or not we're already capturing for this given container

Details

$_captureLock
bool
visibility
protected
default
false
final
false
static
false

$_captureType

string $_captureType = ''

What type of capture (overwrite (set), append, prepend) to use

Details

$_captureType
string
visibility
protected
default
final
false
static
false

$_indent

string $_indent = ''

What string to use as the indentation of output, this will typically be spaces. Eg: ' '

Details

$_indent
string
visibility
protected
default
final
false
static
false

$_postfix

string $_postfix = ''

What text to append the placeholder with when rendering

Details

$_postfix
string
visibility
protected
default
final
false
static
false

$_prefix

string $_prefix = ''

What text to prefix the placeholder with when rendering

Details

$_prefix
string
visibility
protected
default
final
false
static
false

$_separator

string $_separator = ''

What string to use between individual items in the placeholder when rendering

Details

$_separator
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( ) : void

Constructor - This is needed so that we can attach a class member as the ArrayObject container

Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

Serialize object to string

Output
string
Details
visibility
public
final
false
static
false

captureEnd

captureEnd( ) : void

End content capture

Details
visibility
public
final
false
static
false

captureStart

captureStart( int $type = Zend_View_Helper_Placeholder_Container_Abstract,  $key = null ) : void

Start capturing content to push into placeholder

Arguments
$type
int
How to capture content into placeholder; append, prepend, or set
$key
Details
visibility
public
final
false
static
false
throws
if nested captures detected

getIndent

getIndent( ) : string

Retrieve indentation

Output
string
Details
visibility
public
final
false
static
false

getKeys

getKeys( ) : array

Get keys

Output
array
Details
visibility
public
final
false
static
false

getPostfix

getPostfix( ) : string

Retrieve postfix

Output
string
Details
visibility
public
final
false
static
false

getPrefix

getPrefix( ) : string

Retrieve prefix

Output
string
Details
visibility
public
final
false
static
false

getSeparator

getSeparator( ) : string

Retrieve separator

Output
string
Details
visibility
public
final
false
static
false

getValue

getValue( ) : mixed

Retrieve container value

If single element registered, returns that element; otherwise, serializes to array.

Output
mixed
Details
visibility
public
final
false
static
false

getWhitespace

getWhitespace( int|string $indent ) : string

Retrieve whitespace representation of $indent

Arguments
$indent
intstring
Output
string
Details
visibility
public
final
false
static
false

nextIndex

nextIndex( ) : int

Next Index

as defined by the PHP manual

Output
int
Details
visibility
public
final
false
static
false

prepend

prepend( mixed $value ) : void

Prepend a value to the top of the container

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

set

set( mixed $value ) : void

Set a single value

Arguments
$value
mixed
Details
visibility
public
final
false
static
false

setIndent

setIndent( string|int $indent ) : Zend_View_Helper_Placeholder_Container_Abstract

Set the indentation string for __toString() serialization, optionally, if a number is passed, it will be the number of spaces

Arguments
$indent
stringint
Details
visibility
public
final
false
static
false

setPostfix

setPostfix( string $postfix ) : Zend_View_Helper_Placeholder_Container

Set postfix for __toString() serialization

Arguments
$postfix
string
Details
visibility
public
final
false
static
false

setPrefix

setPrefix( string $prefix ) : Zend_View_Helper_Placeholder_Container

Set prefix for __toString() serialization

Arguments
$prefix
string
Details
visibility
public
final
false
static
false

setSeparator

setSeparator( string $separator ) : Zend_View_Helper_Placeholder_Container

Set separator for __toString() serialization

Used to implode elements in container

Arguments
$separator
string
Details
visibility
public
final
false
static
false

toString

toString(  $indent = null ) : string

Render the placeholder

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