public function find($useMasterKey = false)
    {
        $sessionToken = null;
        if (AVUser::getCurrentUser())
        {
            $sessionToken = AVUser::getCurrentUser()->getSessionToken();
        }
        $queryString = $this->buildQueryString($this->_getOptions());
        $result = AVClient::_request('GET', '/classes/' . $this->className . '?' . $queryString, $sessionToken, null,
            $useMasterKey);
        $output = array();
        foreach ($result['results'] as $row)
        {
            $obj = AVObject::create($this->className, $row['objectId']);
            $obj->_mergeAfterFetchWithSelectedKeys($row, $this->selectedKeys);
            $output[] = $obj;
        }

        return $output;
    }
public function find($useMasterKey = false)
    {
        $sessionToken = null;
        if (AVUser::getCurrentUser())
        {
            $sessionToken = AVUser::getCurrentUser()->getSessionToken();
        }
        $queryString = $this->buildQueryString($this->_getOptions());
        $result = AVClient::_request('GET', '/classes/' . $this->className . '?' . $queryString, $sessionToken, null,
            $useMasterKey);
        $output = array();
        foreach ($result['results'] as $row)
        {
            $obj = AVObject::create($this->className, $row['objectId']);
            $obj->_mergeAfterFetchWithSelectedKeys($row, $this->selectedKeys);
            $output[] = $obj;
        }

        return $output;
    }
public function find ( $ useMasterKey = false ) { $ sessionToken = null ; if ( AVUser :: getCurrentUser ( ) ) { $ sessionToken = AVUser :: getCurrentUser ( ) -> getSessionToken ( ) ; } $ queryString = $ this -> buildQueryString ( $ this -> _getOptions ( ) ) ; $ result = AVClient :: _request ( 'GET' , '/classes/' . $ this -> className . '?' . $ queryString , $ sessionToken , null , $ useMasterKey ) ; $ output = array ( ) ; foreach ( $ result [ 'results' ] as $ row ) { $ obj = AVObject :: create ( $ this -> className , $ row [ 'objectId' ] ) ; $ obj -> _mergeAfterFetchWithSelectedKeys ( $ row , $ this -> selectedKeys ) ; $ output [ ] = $ obj ; } return $ output ; }
Execute a find query and return the results.

@param boolean $useMasterKey

@return array
Execute a find query and return the results .