Свойство | Type | Description | |
---|---|---|---|
$configResource | ZF\Configuration\ConfigResource | ||
$docsConfigResource | null | ZF\Configuration\ConfigResource | ||
$moduleNameFilter | Zend\Filter\FilterChain |
Méthode | Description | |
---|---|---|
__construct ( string $moduleName, string $configDirPath, string $srcPath, ZF\Configuration\ConfigResource $config, ZF\Configuration\ConfigResource $docsConfig = null, null | string $pathSpecType = null ) | ||
createVersion ( integer $version ) : true | Create a new version for a module | |
createWithPathSpec ( string $moduleName, |
createWithPathSpec | |
getModuleVersions ( ) : array | boolean | Get the versions of a module | |
setDefaultVersion ( integer $defaultVersion ) : boolean | Updates the default version of a module that will be used if no version is specified by the API consumer. |
Méthode | Description | |
---|---|---|
changeVersionArray ( array $data, integer $previous, integer $version ) : array | Change version in an array | |
changeVersionNamespace ( string $string, integer $previous, integer $version ) : string | Change version in a namespace | |
getModuleNameFilter ( ) : Zend\Filter\FilterChain | Filter for module names | |
recursiveCopy ( string $source, string $target, integer $previous, integer $version ) | Copy file and folder recursively | |
updateConfigVersion ( string $file, integer $previous, integer $version ) : boolean | Update a PHP configuration file from $previous to $version version | |
updateDocumentationVersion ( integer $previous, integer $version ) : true | Update the documentation to add a new $version based on the $previous |
Méthode | Description | |
---|---|---|
setConfigDirPath ( string $configDirPath ) : void | ||
setPathSpecType ( string $pathSpecType ) : void | ||
setVersionsPath ( string $srcPath ) : void | Sets the path to the directory that contains each of the module's version. If the current module is a PSR-0 module then it automatically appends the module's namespace. |
public __construct ( string $moduleName, string $configDirPath, string $srcPath, ZF\Configuration\ConfigResource $config, ZF\Configuration\ConfigResource $docsConfig = null, null | string $pathSpecType = null ) | ||
$moduleName | string | Name of the module. MUST be normalized. |
$configDirPath | string | Path the the configuration folder, with one or more *.config.php files. |
$srcPath | string | Path to the module's source folder for versions, resources & collections. |
$config | ZF\Configuration\ConfigResource | |
$docsConfig | ZF\Configuration\ConfigResource | |
$pathSpecType | null | string | Whether the module uses a PSR-0 directory structure or not. Defaults to ModulePathSpec::PSR_0. |
public createVersion ( integer $version ) : true | ||
$version | integer | |
Résultat | true |
public static createWithPathSpec ( string $moduleName, |
||
$moduleName | string | |
$pathSpec | ||
$config | ZF\Configuration\ConfigResource | |
$docsConfig | ZF\Configuration\ConfigResource | |
Résultat | static |
protected getModuleNameFilter ( ) : Zend\Filter\FilterChain | ||
Résultat | Zend\Filter\FilterChain |
public getModuleVersions ( ) : array | boolean | ||
Résultat | array | boolean |
public setDefaultVersion ( integer $defaultVersion ) : boolean | ||
$defaultVersion | integer | |
Résultat | boolean |
protected updateDocumentationVersion ( integer $previous, integer $version ) : true | ||
$previous | integer | Previous version |
$version | integer | New version |
Résultat | true |
protected ConfigResource,ZF\Configuration $configResource | ||
Résultat | ZF\Configuration\ConfigResource |
protected null|ConfigResource,ZF\Configuration $docsConfigResource | ||
Résultat | null | ZF\Configuration\ConfigResource |