PHP 클래스 fkooman\RemoteStorage\MetadataStorage

파일 보기 프로젝트 열기: fkooman/php-remote-storage 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( PDO $db, $prefix = '', fkooman\IO\IO $io = null )
createTableQueries ( $prefix )
deleteNode ( Path $p )
getContentType ( Path $p )
getVersion ( Path $p )
initDatabase ( )
updateDocument ( Path $p, $contentType ) We have a very weird version update method by including a sequence number that makes it easy for tests to see if there is correct behavior, a sequence number is not enough though as deleting a file would reset the sequence number and thus make it possible to have files with different content to have the same sequence number in the same location, but in order to check if all versions are updated up to the root we have to do this this way.
updateFolder ( Path $p )

비공개 메소드들

메소드 설명
getMetadata ( Path $p ) Get the version of the path which can be either a folder or document.

메소드 상세

__construct() 공개 메소드

public __construct ( PDO $db, $prefix = '', fkooman\IO\IO $io = null )
$db PDO
$io fkooman\IO\IO

createTableQueries() 공개 정적인 메소드

public static createTableQueries ( $prefix )

deleteNode() 공개 메소드

public deleteNode ( Path $p )
$p Path

getContentType() 공개 메소드

public getContentType ( Path $p )
$p Path

getVersion() 공개 메소드

public getVersion ( Path $p )
$p Path

initDatabase() 공개 메소드

public initDatabase ( )

updateDocument() 공개 메소드

..
public updateDocument ( Path $p, $contentType )
$p Path

updateFolder() 공개 메소드

public updateFolder ( Path $p )
$p Path