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 ([email protected])
파일 보기 프로젝트 열기: openeyes/openeyes

보호된 프로퍼티들

프로퍼티 타입 설명
$event_type EventType
$yii

공개 메소드들

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

보호된 메소드들

메소드 설명
getEventType ( ) : EventType

비공개 메소드들

메소드 설명
canEdit ( $user_id, boolean $clerical = false ) : boolean Root permission checking function for edit ability

메소드 상세

__construct() 공개 메소드

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.
public canCreateOphCoCvi ( $user_id, array $view_context = [] ) : boolean
$user_id
$view_context array
리턴 boolean

canEditClinicalOphCoCvi() 공개 메소드

public canEditClinicalOphCoCvi ( $user_id ) : boolean
$user_id
리턴 boolean

canEditOphCoCvi() 공개 메소드

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.
public canEditOphCoCvi ( $user_id, array $view_context = [] ) : boolean
$user_id
$view_context array array containing the currently selected firm and Event for editing
리턴 boolean

getEventType() 보호된 메소드

protected getEventType ( ) : EventType
리턴 EventType

프로퍼티 상세

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

protected EventType $event_type
리턴 EventType

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

protected $yii