Prado\Collections\TPagedList::toArray PHP Метод

toArray() публичный Метод

public toArray ( ) : array
Результат array the list of items in array
    public function toArray()
    {
        $c = $this->getCount();
        $array = array();
        for ($i = 0; $i < $c; ++$i) {
            $array[$i] = $this->itemAt($i);
        }
        return $array;
    }

Usage Example

Пример #1
0
 public function testToArray()
 {
     $list = new TPagedList(array(1, 2, 3));
     $list->CustomPaging = true;
     self::assertEquals(array(1, 2, 3), $list->toArray());
 }