src/DriveItem.php
public function fetchProperties()
    {
        $result = $this->_client->fetchProperties($this->_id);

        $this->_parentId = '' != $result->parent_id ?
            (string) $result->parent_id : null;

        $this->_name = $result->name;

        $this->_description = '' != $result->description ?
            (string) $result->description : null;

        $this->_size = (int) $result->size;

        /** @todo Handle volatile existence (eg. present only for files). */
        $this->_source = (string) $result->source;

        $this->_createdTime = strtotime($result->created_time);
        $this->_updatedTime = strtotime($result->updated_time);

        return $result;
    }
public function fetchProperties()
    {
        $result = $this->_client->fetchProperties($this->_id);

        $this->_parentId = '' != $result->parent_id ?
            (string) $result->parent_id : null;

        $this->_name = $result->name;

        $this->_description = '' != $result->description ?
            (string) $result->description : null;

        $this->_size = (int) $result->size;

        /** @todo Handle volatile existence (eg. present only for files). */
        $this->_source = (string) $result->source;

        $this->_createdTime = strtotime($result->created_time);
        $this->_updatedTime = strtotime($result->updated_time);

        return $result;
    }
public function fetchProperties ( ) { $ result = $ this -> _client -> fetchProperties ( $ this -> _id ) ; $ this -> _parentId = '' != $ result -> parent_id ? ( string ) $ result -> parent_id : null ; $ this -> _name = $ result -> name ; $ this -> _description = '' != $ result -> description ? ( string ) $ result -> description : null ; $ this -> _size = ( int ) $ result -> size ; /** @todo Handle volatile existence (eg. present only for files). */ $ this -> _source = ( string ) $ result -> source ; $ this -> _createdTime = strtotime ( $ result -> created_time ) ; $ this -> _updatedTime = strtotime ( $ result -> updated_time ) ; return $ result ; }
Fetches the properties of the OneDrive drive item referenced by this
DriveItem instance. Some properties are cached for faster subsequent
access.

@return array
The properties of the OneDrive drive item referenced by this
DriveItem instance.
Fetches the properties of the OneDrive drive item referenced by this DriveItem instance . Some properties are cached for faster subsequent access .