Pix_Array_Volumable

package Array
copyright 2003-2012 PIXNET Digital Media Corporation
license BSD License

 Methods

after 指定要從哪一筆開始(不包含 $id 這筆),這個 $id 可以是 getVolumePos 回傳的值

after(mixed $id) : \Pix_Array_Volumable

access public

Parameters

$id

mixed

會跟 Pix_Array_Volumable->getVolumePos() 回傳的值同格式。

Returns

getVolumeID 取得這個 Volume 的代表 ID ,用在 cache 結果用的。

getVolumeID() : string | null

access public

Returns

stringnull若為 null 的話,就不會使用 cache

getVolumePos 回傳 $row 這個 row 在 Pix_Array_Volumable 的位置。

getVolumePos(mixed $row) : mixed

access public

Parameters

$row

mixed

這個類型要跟 rewind() 回傳的 Iterator 的 value 一樣類型

Returns

mixed這個類型要跟 ->after($id) 的 $id 一樣,到時候會噴給他用

limit 指定一次要幾筆

limit(int $limit) : \Pix_Array_Volumable

access public

Parameters

$limit

int

Returns

rewind 回傳符合 ->after($after)->limit($limit) 條件的 Iterator

rewind() : \Iteratorable

access public

Returns

\Iteratorable可以直接丟一個 size 是 $limit 的 array 進來。