Location: PHPKode > projects > LudoDB > ludoDB-master/Tests/classes/PhoneCollection.php
<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Alf Magne Kalleland
 * Date: 20.12.12

 */
class PhoneCollection extends LudoDBCollection
{
    protected $config = array(
        'idField' => 'id',
        'model' => 'Phone',
        'constructBy' => 'user_id',
        'columns' => array(
            'phone'
        ),
        'orderBy' => 'id'
    );

    public function getValues(){
        $ret = array();
        foreach($this as $value){
            $ret[] = $value['phone'];
        }
        return $ret;
    }
}
Return current item: LudoDB