Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
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 ) : |
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 |
Method | Description | |
---|---|---|
__construct ( string $repositoryPath ) | Creates a new repository instance - use {@see open()} instead |
protected __construct ( string $repositoryPath ) | ||
$repositoryPath | string |
public getDirectoryCreationMode ( ) : integer | ||
return | integer |
public getFileCreationMode ( ) : integer | ||
return | integer |
public getRepositoryPath ( ) : string | ||
return | string |
public setDirectoryCreationMode ( integer $directoryCreationMode ) : TQ\Vcs\Repository\RepositoryInterface | ||
$directoryCreationMode | integer | The mode, e.g. 755 |
return | TQ\Vcs\Repository\RepositoryInterface |
public setFileCreationMode ( integer $fileCreationMode ) : TQ\Vcs\Repository\RepositoryInterface | ||
$fileCreationMode | integer | The mode, e.g. 644 |
return | TQ\Vcs\Repository\RepositoryInterface |
public transactional ( Closure $function ) : |
||
$function | Closure | The callback used inside the transaction |
return |
protected string $author | ||
return | string |
protected int $directoryCreationMode | ||
return | integer |
protected int $fileCreationMode | ||
return | integer |
protected string $repositoryPath | ||
return | string |