PHP Class ZF\Apigility\Admin\Model\ModuleResource

Inheritance: extends ZF\Rest\AbstractResourceListener
Afficher le fichier Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Свойство Type Description
$modulePath string
$modulePathSpec ModulePathSpec
$modules ModuleModel

Méthodes publiques

Méthode Description
__construct ( ModuleModel $modules, ModulePathSpec $pathSpec )
create ( array | object $data ) : ModuleEntity Create a new API-First enabled module
delete ( string $id ) : boolean | ZF\ApiProblem\ApiProblem Delete a module (and, optionally, all code within it)
fetch ( string $id ) : ModuleEntity | ZF\ApiProblem\ApiProblem Fetch module metadata
fetchAll ( array $params = [] ) : array Fetch metadata for all API-First enabled modules
setModulePath ( string $path ) Set path to use when creating new modules

Method Details

__construct() public méthode

public __construct ( ModuleModel $modules, ModulePathSpec $pathSpec )
$modules ModuleModel
$pathSpec ModulePathSpec

create() public méthode

Create a new API-First enabled module
public create ( array | object $data ) : ModuleEntity
$data array | object
Résultat ModuleEntity

delete() public méthode

Delete a module (and, optionally, all code within it)
public delete ( string $id ) : boolean | ZF\ApiProblem\ApiProblem
$id string
Résultat boolean | ZF\ApiProblem\ApiProblem

fetch() public méthode

Fetch module metadata
public fetch ( string $id ) : ModuleEntity | ZF\ApiProblem\ApiProblem
$id string
Résultat ModuleEntity | ZF\ApiProblem\ApiProblem

fetchAll() public méthode

Fetch metadata for all API-First enabled modules
public fetchAll ( array $params = [] ) : array
$params array
Résultat array

setModulePath() public méthode

Set path to use when creating new modules
public setModulePath ( string $path )
$path string

Property Details

$modulePath protected_oe property

protected string $modulePath
Résultat string

$modulePathSpec protected_oe property

protected ModulePathSpec,ZF\Apigility\Admin\Model $modulePathSpec
Résultat ModulePathSpec

$modules protected_oe property

protected ModuleModel,ZF\Apigility\Admin\Model $modules
Résultat ModuleModel