code/Report.php
public function records($params)
    {
        if ($this->hasMethod('sourceRecords')) {
            return $this->sourceRecords($params, null, null);
        } else {
            $query = $this->sourceQuery($params);
            $results = ArrayList::create();
            foreach ($query->execute() as $data) {
                $class = $this->dataClass();
                $result = Injector::inst()->create($class, $data);
                $results->push($result);
            }
            return $results;
        }
    }
public function records($params)
    {
        if ($this->hasMethod('sourceRecords')) {
            return $this->sourceRecords($params, null, null);
        } else {
            $query = $this->sourceQuery($params);
            $results = ArrayList::create();
            foreach ($query->execute() as $data) {
                $class = $this->dataClass();
                $result = Injector::inst()->create($class, $data);
                $results->push($result);
            }
            return $results;
        }
    }
public function records ( $ params ) { if ( $ this -> hasMethod ( 'sourceRecords' ) ) { return $ this -> sourceRecords ( $ params , null , null ) ; } else { $ query = $ this -> sourceQuery ( $ params ) ; $ results = ArrayList :: create ( ) ; foreach ( $ query -> execute ( ) as $ data ) { $ class = $ this -> dataClass ( ) ; $ result = Injector :: inst ( ) -> create ( $ class , $ data ) ; $ results -> push ( $ result ) ; } return $ results ; } }
Return a SS_List records for this report.

@param array $params
@return SS_List
Return a SS_List records for this report .