PHP Класс ZF\Apigility\Admin\Model\ModulePathSpec

Adds PSR-0 and PSR-4 support to Apigility.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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