PHP 클래스 OEModule\OphCoCvi\components\OphCoCvi_AuthRules
(C) OpenEyes Foundation, 2016
This file is part of OpenEyes.
OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see
.
파일 보기
프로젝트 열기: openeyes/openeyes
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( CApplication $yii = null ) |
|
|
canCreateOphCoCvi ( $user_id, array $view_context = [] ) : boolean |
Biz rule for RBAC. if only the user id is provided, determines whether the user for the id has permissions for creating a CVI event. |
|
canEditClinicalOphCoCvi ( $user_id ) : boolean |
|
|
canEditOphCoCvi ( $user_id, array $view_context = [] ) : boolean |
Biz rule for RBAC. if only the user id is provided, determines whether the user for the id has permissions for editing a CVI event. |
|
보호된 메소드들
비공개 메소드들
메소드 |
설명 |
|
canEdit ( $user_id, boolean $clerical = false ) : boolean |
Root permission checking function for edit ability |
|
메소드 상세
public __construct ( CApplication $yii = null ) |
$yii |
CApplication |
|
canCreateOphCoCvi()
공개 메소드
If the view context (containing a Firm and Episode) is provided, checks whether the context is correct for creating a CVI event in the episode.
canEditClinicalOphCoCvi()
공개 메소드
If the view context (containing a Firm and Event) is provided, checks whether the context is correct for editing the given CVI Event object.
NB Event checks are purely about view context, and does not account for business rules around the status of the event.
프로퍼티 상세
protected EventType $event_type |
리턴 |
EventType |
|