public function loadFromArray(array $data, $useKeys = true)
    {
        $this->items = array();

        foreach ($data as $key => $item) {
            $this->items[] = $item;
        }
    }
public function loadFromArray(array $data, $useKeys = true)
    {
        $this->items = array();

        foreach ($data as $key => $item) {
            $this->items[] = $item;
        }
    }
public function loadFromArray ( array $ data , $ useKeys = true ) { $ this -> items = array ( ) ; foreach ( $ data as $ key => $ item ) { $ this -> items [ ] = $ item ; } }
Loads collection values from the given array
@param array $data
@param bool $useKeys
Loads collection values from the given array