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

Adds PSR-0 and PSR-4 support to Apigility.
파일 보기 프로젝트 열기: zfcampus/zf-apigility-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$applicationPath string
$currentSpec string
$modulePathSpec string
$moduleSourcePathSpec PSR-0
$modules ZF\Configuration\ModuleUtils
$psrSpecs array
$restPathSpec string
$rpcPathSpec string

공개 메소드들

메소드 설명
__construct ( ZF\Configuration\ModuleUtils $modules, string $sourcePathSpec = self::PSR_0, string $applicationPath = "." )
getApplicationPath ( ) : string Get the path of the application directory
getModuleConfigFilePath ( string $moduleName ) : string
getModuleConfigPath ( string $moduleName ) : string
getModulePath ( string $moduleName ) : string Returns the path for the module name that is specified.
getModuleSourcePath ( string $moduleName, boolean $fullPath = true ) : string Returns the source path for the module that is specified
getModuleViewPath ( string $moduleName ) : string
getPathSpec ( ) : string Returns the current path spec being utitlized. IE> psr-0 or psr-4
getRestPath ( string $moduleName, integer $version = 1, string $serviceName = null ) : string Get the REST service path for a given module, service name and version
getRpcPath ( string $moduleName, integer $version = 1, string $serviceName = null ) : string
normalizeModuleName ( string $moduleName ) : string Normalizes a module name by converting periods and forward slashes into backslashes (for namespaces). This function should always remain idempotent.
normalizePath ( string $path ) : string Normalizes a path by converting back-slashes into normal slashes. This function should always remain idempotent.
setApplicationPath ( string $path ) Set the path to the application directory

메소드 상세

__construct() 공개 메소드

public __construct ( ZF\Configuration\ModuleUtils $modules, string $sourcePathSpec = self::PSR_0, string $applicationPath = "." )
$modules ZF\Configuration\ModuleUtils
$sourcePathSpec string
$applicationPath string

getApplicationPath() 공개 메소드

Get the path of the application directory
public getApplicationPath ( ) : string
리턴 string

getModuleConfigFilePath() 공개 메소드

public getModuleConfigFilePath ( string $moduleName ) : string
$moduleName string
리턴 string

getModuleConfigPath() 공개 메소드

public getModuleConfigPath ( string $moduleName ) : string
$moduleName string
리턴 string

getModulePath() 공개 메소드

Returns the path for the module name that is specified.
public getModulePath ( string $moduleName ) : string
$moduleName string
리턴 string

getModuleSourcePath() 공개 메소드

Returns the source path for the module that is specified
public getModuleSourcePath ( string $moduleName, boolean $fullPath = true ) : string
$moduleName string
$fullPath boolean
리턴 string

getModuleViewPath() 공개 메소드

public getModuleViewPath ( string $moduleName ) : string
$moduleName string
리턴 string

getPathSpec() 공개 메소드

Returns the current path spec being utitlized. IE> psr-0 or psr-4
public getPathSpec ( ) : string
리턴 string

getRestPath() 공개 메소드

Get the REST service path for a given module, service name and version
public getRestPath ( string $moduleName, integer $version = 1, string $serviceName = null ) : string
$moduleName string
$version integer
$serviceName string
리턴 string

getRpcPath() 공개 메소드

public getRpcPath ( string $moduleName, integer $version = 1, string $serviceName = null ) : string
$moduleName string
$version integer
$serviceName string
리턴 string

normalizeModuleName() 공개 메소드

Normalizes a module name by converting periods and forward slashes into backslashes (for namespaces). This function should always remain idempotent.
public normalizeModuleName ( string $moduleName ) : string
$moduleName string
리턴 string

normalizePath() 공개 메소드

Normalizes a path by converting back-slashes into normal slashes. This function should always remain idempotent.
public normalizePath ( string $path ) : string
$path string
리턴 string

setApplicationPath() 공개 메소드

Set the path to the application directory
public setApplicationPath ( string $path )
$path string

프로퍼티 상세

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

protected string $applicationPath
리턴 string

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

protected string $currentSpec
리턴 string

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

protected string $modulePathSpec
리턴 string

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

PSR-0
protected $moduleSourcePathSpec

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

protected ModuleUtils,ZF\Configuration $modules
리턴 ZF\Configuration\ModuleUtils

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

protected array $psrSpecs
리턴 array

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

protected string $restPathSpec
리턴 string

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

protected string $rpcPathSpec
리턴 string