phpDocumentor collections
[ class tree: collections ] [ index: collections ] [ all elements ]

Class: WindList

Source Location: /collections/WindList.php

Class WindList

Class Overview

Implements interfaces:

  • IteratorAggregate (internal interface)
  • ArrayAccess (internal interface)
  • Countable (internal interface)

Located in /collections/WindList.php [line 9]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Id: WindList.php 2973 2011-10-15 19:22:48Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Methods

[ Top ]
Method Summary
WindList   __construct()   WindList 实现有三种类别:只读、固定大小、可变大小。
boolean   add()   向 WindList 中添加项。
boolean   clear()   清空WindList
boolean   contain()   判断WindList中是否包含指定项
boolean   containAt()   判断WindList中是否包含指定的索引
void   count()  
string   getCount()   取得集合的总数
boolean   getIsFixedSize()   取得集合是否是固定大小
boolean   getIsReadOnly()   取得集合是否只读
void   getIterator()   取得集合的迭代器
array   getList()  
int   indexOf()   返回指定项的索引,返回-1表向没有指定项
boolean   insertAt()   在 WindList 中的指定索引处插入项。
mixed   itemAt()   取得指定索引的项
boolean   mergeFromArray()   将数组中的值合并到WindList
boolean   mergeFromList()   将WindList集合合并到WindList
boolean   modify()   修改WindList中指定索引的项
void   offsetExists()  
void   offsetGet()  
void   offsetSet()  
void   offsetUnset()  
boolean   remove()   从WindList中移除指定的项
mixed   removeAt()   从WindList中移除指定索引的项

[ Top ]
Methods
Constructor __construct  [line 37]

  WindList __construct( [array|WindList $data = array()], [boolean $readOnly = false]  )

WindList 实现有三种类别:只读、固定大小、可变大小。

无法修改只读 WindList。 固定大小的 WindList 不允许添加或移除元素,但允许修改现有元素。 可变大小的 WindList 允许添加、移除和修改元素。

Parameters:
boolean   $readOnly:  是否只读
array|WindList   $data:  固定长度,如果指定了$data,那么这个WindList集合的长度是固定的,只许修改

API Tags:
Access:  public


[ Top ]
add  [line 57]

  boolean add( mixed $value  )

向 WindList 中添加项。

Parameters:
mixed   $value: 

API Tags:
Access:  public


[ Top ]
clear  [line 170]

  boolean clear( )

清空WindList


API Tags:
Access:  public


[ Top ]
contain  [line 108]

  boolean contain( mixed $value  )

判断WindList中是否包含指定项

Parameters:
mixed   $value:  指定项

API Tags:
Access:  public


[ Top ]
containAt  [line 116]

  boolean containAt( int $index  )

判断WindList中是否包含指定的索引

Parameters:
int   $index:  指定索引

API Tags:
Access:  public


[ Top ]
count  [line 234]

  void count( )


API Tags:
Access:  public


Implementation of:
Countable::count

[ Top ]
getCount  [line 213]

  string getCount( )

取得集合的总数


API Tags:
Access:  public


[ Top ]
getIsFixedSize  [line 227]

  boolean getIsFixedSize( )

取得集合是否是固定大小


API Tags:
Access:  public


[ Top ]
getIsReadOnly  [line 220]

  boolean getIsReadOnly( )

取得集合是否只读


API Tags:
Access:  public


[ Top ]
getIterator  [line 268]

  void getIterator( )

取得集合的迭代器


API Tags:
Access:  public


Implementation of:
IteratorAggregate::getIterator

[ Top ]
getList  [line 206]

  array getList( )


API Tags:
Access:  public


[ Top ]
indexOf  [line 100]

  int indexOf( mixed $value  )

返回指定项的索引,返回-1表向没有指定项

Parameters:
mixed   $value:  指定项

API Tags:
Access:  public


[ Top ]
insertAt  [line 66]

  boolean insertAt( int $index, mixed $value  )

在 WindList 中的指定索引处插入项。

Parameters:
int   $index: 
mixed   $value: 

API Tags:
Access:  public


[ Top ]
itemAt  [line 89]

  mixed itemAt( int $index  )

取得指定索引的项

Parameters:
int   $index:  指定索引

API Tags:
Access:  public


[ Top ]
mergeFromArray  [line 186]

  boolean mergeFromArray( array $array  )

将数组中的值合并到WindList

Parameters:
array   $array:  要合并的数组

API Tags:
Access:  public


[ Top ]
mergeFromList  [line 197]

  boolean mergeFromList( WindList $list  )

将WindList集合合并到WindList

Parameters:
WindList   $list:  要合并的WindList集合

API Tags:
Access:  public


[ Top ]
modify  [line 125]

  boolean modify( int $index, mixed $value  )

修改WindList中指定索引的项

Parameters:
int   $index:  指定索引
mixed   $value:  要修改的项

API Tags:
Access:  public


[ Top ]
offsetExists  [line 240]

  void offsetExists( int $offset  )

Parameters:
int   $offset: 

API Tags:
Access:  public


Implementation of:
ArrayAccess::offsetExists

[ Top ]
offsetGet  [line 246]

  void offsetGet( int $offset  )

Parameters:
int   $offset: 

API Tags:
Access:  public


Implementation of:
ArrayAccess::offsetGet

[ Top ]
offsetSet  [line 253]

  void offsetSet( int $offset, mixed $value  )

Parameters:
int   $offset: 
mixed   $value: 

API Tags:
Access:  public


Implementation of:
ArrayAccess::offsetSet

[ Top ]
offsetUnset  [line 262]

  void offsetUnset( int $offset  )

Parameters:
int   $offset: 

API Tags:
Access:  public


Implementation of:
ArrayAccess::offsetUnset

[ Top ]
remove  [line 163]

  boolean remove( mixed $value  )

从WindList中移除指定的项

Parameters:
mixed   $value:  指定的项

API Tags:
Access:  public


[ Top ]
removeAt  [line 137]

  mixed removeAt( int $index, [ $force = false]  )

从WindList中移除指定索引的项

Parameters:
int   $index:  指定索引
   $force: 

API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:36 +0800 by phpDocumentor 1.4.4