Method | Description | |
---|---|---|
__construct ( array $opts = [], Components_Component $comp = null, string $path = null ) | Constructor. | |
getGitIgnore ( ) : string | Return the contents of the gitignore file. | |
getPackageXml ( string $name ) : string | Return the path to the package.xml for the package with the provided name. | |
getRoot ( ) : string | Return the root position of the repository. | |
traverseHierarchy ( string $start ) : string | boolean | Traverse the folder tree upwards to determine if a parent folder of the provided file path might be the Horde repository root. |
Method | Description | |
---|---|---|
_determineRoot ( ) : string | Try to determine the root path. | |
_determineRootFromComponent ( ) : string | boolean | Try to determine the root path based on a component. | |
_determineRootFromCwd ( ) : string | boolean | Try to determine the root path based on the current working directory. | |
_determineRootFromOptions ( ) : string | boolean | Try to determine the root path based on the options. | |
_determineRootFromPath ( ) : string | boolean | Try to determine the root path based on a fixed path. | |
_isValidRoot ( string $directory ) : string | boolean | Test if the directory path could be the Horde repository root. |
public __construct ( array $opts = [], Components_Component $comp = null, string $path = null ) | ||
$opts | array | If given the helper will try to determine the root of the Horde repository based on these options. |
$comp | Components_Component | If given the helper will try to determine the root of the Horde repository based on this component. |
$path | string | If given the helper will try to determine the root of the Horde repository based on this path. |
public getGitIgnore ( ) : string | ||
return | string | The information from the gitignore file. |
public getPackageXml ( string $name ) : string | ||
$name | string | The name of the package. |
return | string | The path to the package.xml of the requested package. |