PHP 클래스 VersionPress\Storages\DirectoryStorage

For example, posts are stored as .ini in the vpdb/posts folder. Note that the same file can be used by multiple entities. For example, both the main post data and postmeta for it are stored in the same INI file.
상속: extends Storage
파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $directory, EntityInfo $entityInfo, string $dbPrefix, ChangeInfoFactory $changeInfoFactory ) DirectoryStorage constructor.
commit ( )
delete ( $restriction )
entityExistedBeforeThisRequest ( $data )
exists ( $id, $parentId = null )
getEntityFilename ( $id, $parentId = null )
getPathCommonToAllEntities ( )
loadAll ( )
loadEntity ( $id, $parentId = null )
prepareStorage ( )
save ( $data )
saveLater ( $data )

보호된 메소드들

메소드 설명
removeUnwantedColumns ( $entity )

비공개 메소드들

메소드 설명
createChangeInfo ( $oldEntity, $newEntity, $action )
getEntityFiles ( )
loadAllFromFiles ( $entityFiles )

메소드 상세

__construct() 공개 메소드

DirectoryStorage constructor.
public __construct ( string $directory, EntityInfo $entityInfo, string $dbPrefix, ChangeInfoFactory $changeInfoFactory )
$directory string
$entityInfo VersionPress\Database\EntityInfo
$dbPrefix string
$changeInfoFactory VersionPress\ChangeInfos\ChangeInfoFactory

commit() 공개 메소드

public commit ( )

delete() 공개 메소드

public delete ( $restriction )

entityExistedBeforeThisRequest() 공개 메소드

exists() 공개 메소드

public exists ( $id, $parentId = null )

getEntityFilename() 공개 메소드

public getEntityFilename ( $id, $parentId = null )

getPathCommonToAllEntities() 공개 메소드

loadAll() 공개 메소드

public loadAll ( )

loadEntity() 공개 메소드

public loadEntity ( $id, $parentId = null )

prepareStorage() 공개 메소드

public prepareStorage ( )

removeUnwantedColumns() 보호된 메소드

protected removeUnwantedColumns ( $entity )

save() 공개 메소드

public save ( $data )

saveLater() 공개 메소드

public saveLater ( $data )