lib/IXF/ApiResource.php
public function refresh( $resource )
    {
        $url = $url = '/' . $resource . '/' . $this->id;

        $requestor = new ApiRequestor();
        $response = $requestor->request(
            'get',
            $url,
            $this->_retrieveOptions
        );
        $this->refreshFrom($response[0]);

        return $this;
    }
public function refresh( $resource )
    {
        $url = $url = '/' . $resource . '/' . $this->id;

        $requestor = new ApiRequestor();
        $response = $requestor->request(
            'get',
            $url,
            $this->_retrieveOptions
        );
        $this->refreshFrom($response[0]);

        return $this;
    }
public function refresh ( $ resource ) { $ url = $ url = '/' . $ resource . '/' . $ this -> id ; $ requestor = new ApiRequestor ( ) ; $ response = $ requestor -> request ( 'get' , $ url , $ this -> _retrieveOptions ) ; $ this -> refreshFrom ( $ response [ 0 ] ) ; return $ this ; }
Refresh the current object from the API service

@param string $resource The resource - e.g. ''IXP''
@return ApiResource The refreshed resource.
@throws Error An appropriate error object
Refresh the current object from the API service