Tag/ItemList.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Tag  
Subpackage
ItemList  
Version
$Id$  

\Zend_Tag_ItemList

Package: Zend_Tag
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_items = array()
Items in this list
Default valuearray()Details
Type
array

Methods

methodpubliccount() : integer

Count all items

Returns
TypeDescription
integer
methodpubliccurrent() : mixed

Return the current element

Returns
TypeDescription
mixed
methodpublickey() : mixed

Return the key of the current element

Returns
TypeDescription
mixed
methodpublicnext() : mixed

Move forward to next element

Returns
TypeDescription
mixed
methodpublicoffsetExists(mixed $offset) : boolean

Check if an offset exists

Parameters
NameTypeDescription
$offsetmixed
Returns
TypeDescription
boolean
methodpublicoffsetGet(mixed $offset) : \Zend_Tag_Taggable

Get the value of an offset

Parameters
NameTypeDescription
$offsetmixed
Returns
TypeDescription
\Zend_Tag_Taggable
methodpublicoffsetSet(mixed $offset, \Zend_Tag_Taggable $item) : void

Append a new item

Parameters
NameTypeDescription
$offsetmixed
$item\Zend_Tag_Taggable
Throws
ExceptionDescription
\OutOfBoundsExceptionWhen item does not implement Zend_Tag_Taggable
methodpublicoffsetUnset(mixed $offset) : void

Unset an item

Parameters
NameTypeDescription
$offsetmixed
methodpublicrewind() : void

Rewind the Iterator to the first element

methodpublicseek(integer $index) : void

Seek to an absolute positio

Parameters
NameTypeDescription
$indexinteger
Throws
ExceptionDescription
\OutOfBoundsExceptionWhen the seek position is invalid
methodpublicspreadWeightValues(array $values) : void

Spread values in the items relative to their weight

Parameters
NameTypeDescription
$valuesarray
Throws
ExceptionDescription
\Zend_Tag_ExceptionWhen value list is empty
methodpublicvalid() : boolean

Check if there is a current element after calls to rewind() or next()

Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .