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

상속: extends ZF\Rest\AbstractResourceListener
파일 보기 프로젝트 열기: zfcampus/zf-apigility-admin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$modulePath string
$modulePathSpec ModulePathSpec
$modules ModuleModel

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

create() 공개 메소드

Create a new API-First enabled module
public create ( array | object $data ) : ModuleEntity
$data array | object
리턴 ModuleEntity

delete() 공개 메소드

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

fetch() 공개 메소드

Fetch module metadata
public fetch ( string $id ) : ModuleEntity | ZF\ApiProblem\ApiProblem
$id string
리턴 ModuleEntity | ZF\ApiProblem\ApiProblem

fetchAll() 공개 메소드

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

setModulePath() 공개 메소드

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

프로퍼티 상세

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

protected string $modulePath
리턴 string

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

protected ModulePathSpec,ZF\Apigility\Admin\Model $modulePathSpec
리턴 ModulePathSpec

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

protected ModuleModel,ZF\Apigility\Admin\Model $modules
리턴 ModuleModel