PHP 클래스 ZF\Apigility\Admin\Model\VersioningModel

사용 중단: use \ZF\Apigility\Admin\Model\ModuleVersioningModel instead
파일 보기 프로젝트 열기: zfcampus/zf-apigility-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$configResource
$docsConfigResource
$moduleNameFilter

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
getModuleVersioningModel ( $name, null | string $srcPath = null ) : ModuleVersioningModel getModuleVersioningModel

메소드 상세

__construct() 공개 메소드

사용 중단:
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() 공개 메소드

Create a new version for a module
사용 중단:
public createVersion ( string $module, integer $version, boolean | string $path = false ) : boolean
$module string
$version integer
$path boolean | string
리턴 boolean

getModuleNameFilter() 보호된 메소드

Filter for module names
사용 중단:
protected getModuleNameFilter ( ) : Zend\Filter\FilterChain
리턴 Zend\Filter\FilterChain

getModuleSourcePath() 보호된 메소드

Usually, this is the "src/{modulename}" subdirectory of the module.
사용 중단:
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
리턴 string

getModuleVersions() 공개 메소드

Get the versions of a module
사용 중단:
public getModuleVersions ( string $module, boolean | string $path = false ) : array | boolean
$module string
$path boolean | string
리턴 array | boolean

locateConfigPath() 보호된 메소드

Locate the config path for this module
사용 중단:
protected locateConfigPath ( string $srcPath ) : string | false
$srcPath string
리턴 string | false

normalizeModule() 보호된 메소드

Module names come over the wire dot-separated; make them namespaced.
사용 중단:
protected normalizeModule ( string $module ) : string
$module string
리턴 string

setDefaultVersion() 공개 메소드

Updates the default version of a module that will be used if no version is specified by the API consumer.
사용 중단:
public setDefaultVersion ( integer $defaultVersion ) : boolean
$defaultVersion integer
리턴 boolean

프로퍼티 상세

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

protected $configResource

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

protected $docsConfigResource

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

protected $moduleNameFilter