fkooman\RemoteStorage\MetadataStorage::getMetadata PHP Метод

getMetadata() приватный Метод

Get the version of the path which can be either a folder or document.
private getMetadata ( Path $p )
$p Path
    private function getMetadata(Path $p)
    {
        $stmt = $this->db->prepare(sprintf('SELECT version, content_type FROM %s WHERE path = :path', $this->prefix . 'md'));
        $stmt->bindValue(':path', $p->getPath(), PDO::PARAM_STR);
        $stmt->execute();
        $result = $stmt->fetch(PDO::FETCH_ASSOC);
        if (false !== $result) {
            return $result;
        }
        return;
    }