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])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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