system/core/classes/libraries/database/DTO.php
public function isRetrieveAsObjects($val = null)
    {
        if (!is_null($val)) {
            $this->retrieveAsObjects = $val;
            return $this;
        }

        return $this->retrieveAsObjects == true;
    }
public function isRetrieveAsObjects($val = null)
    {
        if (!is_null($val)) {
            $this->retrieveAsObjects = $val;
            return $this;
        }

        return $this->retrieveAsObjects == true;
    }
public function isRetrieveAsObjects ( $ val = null ) { if ( ! is_null ( $ val ) ) { $ this -> retrieveAsObjects = $ val ; return $ this ; } return $ this -> retrieveAsObjects == true ; }
Determines if the DTO will retrieve the results as objects.
Also acts as a setter for retrieve as objects

@param boolean $val If set to true or false, then it will retrieve results as objects or arrays respectively.

@return mixed Will return DTO $this if $val is specified, otherwise,
returns boolean that answers the question "Retrieve as objects?"
Determines if the DTO will retrieve the results as objects . Also acts as a setter for retrieve as objects