PHP Class ZF\Apigility\Admin\Model\ModulePathSpec

Adds PSR-0 and PSR-4 support to Apigility.
Afficher le fichier Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Свойство Type Description
$applicationPath string
$currentSpec string
$modulePathSpec string
$moduleSourcePathSpec PSR-0
$modules ZF\Configuration\ModuleUtils
$psrSpecs array
$restPathSpec string
$rpcPathSpec string

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

getApplicationPath() public méthode

Get the path of the application directory
public getApplicationPath ( ) : string
Résultat string

getModuleConfigFilePath() public méthode

public getModuleConfigFilePath ( string $moduleName ) : string
$moduleName string
Résultat string

getModuleConfigPath() public méthode

public getModuleConfigPath ( string $moduleName ) : string
$moduleName string
Résultat string

getModulePath() public méthode

Returns the path for the module name that is specified.
public getModulePath ( string $moduleName ) : string
$moduleName string
Résultat string

getModuleSourcePath() public méthode

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

getModuleViewPath() public méthode

public getModuleViewPath ( string $moduleName ) : string
$moduleName string
Résultat string

getPathSpec() public méthode

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

getRestPath() public méthode

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
Résultat string

getRpcPath() public méthode

public getRpcPath ( string $moduleName, integer $version = 1, string $serviceName = null ) : string
$moduleName string
$version integer
$serviceName string
Résultat string

normalizeModuleName() public méthode

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
Résultat string

normalizePath() public méthode

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

setApplicationPath() public méthode

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

Property Details

$applicationPath protected_oe property

protected string $applicationPath
Résultat string

$currentSpec protected_oe property

protected string $currentSpec
Résultat string

$modulePathSpec protected_oe property

protected string $modulePathSpec
Résultat string

$moduleSourcePathSpec protected_oe property

PSR-0
protected $moduleSourcePathSpec

$modules protected_oe property

protected ModuleUtils,ZF\Configuration $modules
Résultat ZF\Configuration\ModuleUtils

$psrSpecs protected_oe property

protected array $psrSpecs
Résultat array

$restPathSpec protected_oe property

protected string $restPathSpec
Résultat string

$rpcPathSpec protected_oe property

protected string $rpcPathSpec
Résultat string