public function createView($records)
    {
        if ($records instanceof Content) {
            $this->processSingleRecord($records);
        } elseif ($records instanceof QueryResultset) {
            $this->processRecords($records);
        }

        return $records;
    }
public function createView($records)
    {
        if ($records instanceof Content) {
            $this->processSingleRecord($records);
        } elseif ($records instanceof QueryResultset) {
            $this->processRecords($records);
        }

        return $records;
    }
public function createView ( $ records ) { if ( $ records instanceof Content ) { $ this -> processSingleRecord ( $ records ) ; } elseif ( $ records instanceof QueryResultset ) { $ this -> processRecords ( $ records ) ; } return $ records ; }
This loads the relevant record or records and activates the class.

@param Content|QueryResultset $records

@return Content|QueryResultset
This loads the relevant record or records and activates the class .