gyro/core/lib/interfaces/iaccesscontrol.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Interface for access control implementations 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface IAccessControl { 00009 /** 00010 * Check if action on object is allowed for user 00011 * 00012 * @param string $action The action to perform (edit, delete, ....) 00013 * @param mixed $item Item to perform the action on (may be a DataObject, e.g.) 00014 * @param mixed $user A user, role, ACO, depending on user management chosen 00015 * @return bool 00016 */ 00017 public function is_allowed($action, $item, $user, $params = false); 00018 00019 /** 00020 * Set old implementation. Requests not handled should be delegated to this 00021 * 00022 * @param IAccessControl $implementation 00023 */ 00024 public function set_old_implementation(IAccessControl $implementation); 00025 }