PHP 클래스 TQ\Vcs\Repository\AbstractRepository

상속: implements TQ\Vcs\Repository\RepositoryInterface
파일 보기 프로젝트 열기: teqneers/php-stream-wrapper-for-git 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$author string The author used when committing changes
$directoryCreationMode integer The mode used to create directories when requested
$fileCreationMode integer The mode used to create files when requested
$repositoryPath string The repository path

공개 메소드들

메소드 설명
getAuthor ( ) : string Returns the author used when committing changes
getDirectoryCreationMode ( ) : integer Returns the mode used to create directories when requested
getFileCreationMode ( ) : integer Returns the mode used to create files when requested
getRepositoryPath ( ) : string Returns the full file system path to the repository
resolveFullPath ( string | array $path ) : string | array Resolves a path relative to the repository into an absolute path
resolveLocalPath ( string | array $path ) : string | array Resolves an absolute path into a path relative to the repository path
setAuthor ( string $author ) : TQ\Vcs\Repository\RepositoryInterface Sets the author used when committing changes
setDirectoryCreationMode ( integer $directoryCreationMode ) : TQ\Vcs\Repository\RepositoryInterface Sets the mode used to create directories when requested
setFileCreationMode ( integer $fileCreationMode ) : TQ\Vcs\Repository\RepositoryInterface Sets the mode used to create files when requested
transactional ( Closure $function ) : Transaction Runs $function in a transactional scope committing all changes to the repository on success, but rolling back all changes in the event of an Exception being thrown in the closure

보호된 메소드들

메소드 설명
__construct ( string $repositoryPath ) Creates a new repository instance - use {@see open()} instead

메소드 상세

__construct() 보호된 메소드

Creates a new repository instance - use {@see open()} instead
protected __construct ( string $repositoryPath )
$repositoryPath string

getAuthor() 공개 메소드

Returns the author used when committing changes
public getAuthor ( ) : string
리턴 string

getDirectoryCreationMode() 공개 메소드

Returns the mode used to create directories when requested

getFileCreationMode() 공개 메소드

Returns the mode used to create files when requested
public getFileCreationMode ( ) : integer
리턴 integer

getRepositoryPath() 공개 메소드

Returns the full file system path to the repository
public getRepositoryPath ( ) : string
리턴 string

resolveFullPath() 공개 메소드

Resolves a path relative to the repository into an absolute path
public resolveFullPath ( string | array $path ) : string | array
$path string | array A local path (or an array of paths)
리턴 string | array Either a single path or an array of paths is returned

resolveLocalPath() 공개 메소드

Resolves an absolute path into a path relative to the repository path
public resolveLocalPath ( string | array $path ) : string | array
$path string | array A file system path (or an array of paths)
리턴 string | array Either a single path or an array of paths is returned

setAuthor() 공개 메소드

Sets the author used when committing changes
public setAuthor ( string $author ) : TQ\Vcs\Repository\RepositoryInterface
$author string The author used when committing changes
리턴 TQ\Vcs\Repository\RepositoryInterface

setDirectoryCreationMode() 공개 메소드

Sets the mode used to create directories when requested
public setDirectoryCreationMode ( integer $directoryCreationMode ) : TQ\Vcs\Repository\RepositoryInterface
$directoryCreationMode integer The mode, e.g. 755
리턴 TQ\Vcs\Repository\RepositoryInterface

setFileCreationMode() 공개 메소드

Sets the mode used to create files when requested
public setFileCreationMode ( integer $fileCreationMode ) : TQ\Vcs\Repository\RepositoryInterface
$fileCreationMode integer The mode, e.g. 644
리턴 TQ\Vcs\Repository\RepositoryInterface

transactional() 공개 메소드

The closure $function will be called with a {@see \TQ\Vcs\Repository\Transaction} as its only argument
public transactional ( Closure $function ) : Transaction
$function Closure The callback used inside the transaction
리턴 Transaction

프로퍼티 상세

$author 보호되어 있는 프로퍼티

The author used when committing changes
protected string $author
리턴 string

$directoryCreationMode 보호되어 있는 프로퍼티

The mode used to create directories when requested
protected int $directoryCreationMode
리턴 integer

$fileCreationMode 보호되어 있는 프로퍼티

The mode used to create files when requested
protected int $fileCreationMode
리턴 integer

$repositoryPath 보호되어 있는 프로퍼티

The repository path
protected string $repositoryPath
리턴 string