PHP Class CreateEventControllerBehavior

(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 .
Author: OpenEyes ([email protected])
Inheritance: extends CBehavior
Show file Open project: openeyes/openeyes

Protected Properties

Property Type Description
$current_episode

Public Methods

Method Description
getCreateArgsForEventTypeOprn ( $event_type ) : array Supports the more complex RBAC rules for newer event types by providing a structure for specifying the operation and arguments that should be used to check create access for an event.
getOwnerCurrentEpisode ( ) : array | mixed | null | void Caching wrapper for the current episode lookup

Method Details

getCreateArgsForEventTypeOprn() public method

It's not necessary to replicate this for editing at the moment, as all editing routes are reached through the relevant module controllers for any given event type.
public getCreateArgsForEventTypeOprn ( $event_type ) : array
$event_type
return array

getOwnerCurrentEpisode() public method

Caching wrapper for the current episode lookup
public getOwnerCurrentEpisode ( ) : array | mixed | null | void
return array | mixed | null | void

Property Details

$current_episode protected property

protected $current_episode