PHP Class ZF\Apigility\Admin\Model\ModuleEntity

Mostrar archivo Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$defaultVersion integer
$isVendor boolean
$name string
$namespace string
$restServices array
$rpcServices array
$versions array

Public Methods

Method Description
__construct ( string $namespace, array $restServices = [], array $rpcServices = [], boolean $isVendor = null )
exchangeArray ( array $data ) Populate object from array
getArrayCopy ( ) : array Retrieve array representation
getDefaultVersion ( ) : integer
getLatestVersion ( ) : integer
getName ( ) : string
getNamespace ( ) : string
getRestServices ( ) : array
getRpcServices ( ) : array
getVersions ( ) : array
isVendor ( ) : boolean

Protected Methods

Method Description
determineVendorStatus ( ) Determine whether or not a module is a vendor module

Method Details

__construct() public method

public __construct ( string $namespace, array $restServices = [], array $rpcServices = [], boolean $isVendor = null )
$namespace string
$restServices array
$rpcServices array
$isVendor boolean

determineVendorStatus() protected method

Use ReflectionClass to determine the filename, and then checks if the module lives in a vendor subdirectory.
protected determineVendorStatus ( )

exchangeArray() public method

Populate object from array
public exchangeArray ( array $data )
$data array

getArrayCopy() public method

Retrieve array representation
public getArrayCopy ( ) : array
return array

getDefaultVersion() public method

public getDefaultVersion ( ) : integer
return integer

getLatestVersion() public method

public getLatestVersion ( ) : integer
return integer

getName() public method

public getName ( ) : string
return string

getNamespace() public method

public getNamespace ( ) : string
return string

getRestServices() public method

public getRestServices ( ) : array
return array

getRpcServices() public method

public getRpcServices ( ) : array
return array

getVersions() public method

public getVersions ( ) : array
return array

isVendor() public method

public isVendor ( ) : boolean
return boolean

Property Details

$defaultVersion protected_oe property

protected int $defaultVersion
return integer

$isVendor protected_oe property

protected bool $isVendor
return boolean

$name protected_oe property

protected string $name
return string

$namespace protected_oe property

protected string $namespace
return string

$restServices protected_oe property

protected array $restServices
return array

$rpcServices protected_oe property

protected array $rpcServices
return array

$versions protected_oe property

protected array $versions
return array