PHP Class ZF\Apigility\Admin\Model\VersioningModel

Deprecation: use \ZF\Apigility\Admin\Model\ModuleVersioningModel instead
Afficher le fichier Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Свойство Type Description
$configResource
$docsConfigResource
$moduleNameFilter

Méthodes publiques

Méthode Description
__construct ( ZF\Configuration\ConfigResource $config, ZF\Configuration\ConfigResource $docsConfig = null, ModulePathSpec $pathSpec = null )
createVersion ( string $module, integer $version, boolean | string $path = false ) : boolean Create a new version for a module
getModuleVersions ( string $module, boolean | string $path = false ) : 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éthodes protégées

Méthode Description
getModuleNameFilter ( ) : Zend\Filter\FilterChain Filter for module names
getModuleSourcePath ( string $module, boolean $appendNamespace = true ) : string Determine the source path for the module
locateConfigPath ( string $srcPath ) : string | false Locate the config path for this module
normalizeModule ( string $module ) : string Normalize a module name

Private Methods

Méthode Description
getModuleVersioningModel ( $name, null | string $srcPath = null ) : ModuleVersioningModel getModuleVersioningModel

Method Details

__construct() public méthode

Deprecation:
public __construct ( ZF\Configuration\ConfigResource $config, ZF\Configuration\ConfigResource $docsConfig = null, ModulePathSpec $pathSpec = null )
$config ZF\Configuration\ConfigResource
$docsConfig ZF\Configuration\ConfigResource
$pathSpec ModulePathSpec

createVersion() public méthode

Create a new version for a module
Deprecation:
public createVersion ( string $module, integer $version, boolean | string $path = false ) : boolean
$module string
$version integer
$path boolean | string
Résultat boolean

getModuleNameFilter() protected méthode

Filter for module names
Deprecation:
protected getModuleNameFilter ( ) : Zend\Filter\FilterChain
Résultat Zend\Filter\FilterChain

getModuleSourcePath() protected méthode

Usually, this is the "src/{modulename}" subdirectory of the module.
Deprecation:
protected getModuleSourcePath ( string $module, boolean $appendNamespace = true ) : string
$module string
$appendNamespace boolean If true, it will append the module's namespace to the path - for PSR0 compatibility
Résultat string

getModuleVersions() public méthode

Get the versions of a module
Deprecation:
public getModuleVersions ( string $module, boolean | string $path = false ) : array | boolean
$module string
$path boolean | string
Résultat array | boolean

locateConfigPath() protected méthode

Locate the config path for this module
Deprecation:
protected locateConfigPath ( string $srcPath ) : string | false
$srcPath string
Résultat string | false

normalizeModule() protected méthode

Module names come over the wire dot-separated; make them namespaced.
Deprecation:
protected normalizeModule ( string $module ) : string
$module string
Résultat string

setDefaultVersion() public méthode

Updates the default version of a module that will be used if no version is specified by the API consumer.
Deprecation:
public setDefaultVersion ( integer $defaultVersion ) : boolean
$defaultVersion integer
Résultat boolean

Property Details

$configResource protected_oe property

protected $configResource

$docsConfigResource protected_oe property

protected $docsConfigResource

$moduleNameFilter protected_oe property

protected $moduleNameFilter