/usr/share/php/Horde/Perms/Null.php is in php-horde-perms 2.1.7-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | <?php
/**
* Horde_Perms_Null
*
* Copyright 2011-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Jan Schneider <jan@horde.org>
* @category Horde
* @package Perms
*/
class Horde_Perms_Null extends Horde_Perms_Base
{
/**
* Returns a new permissions object.
*
* @param string $name The permission's name.
* @param string $type The permission type.
* @param array $params The permission parameters.
*
* @return Horde_Perms_Permission A new permissions object.
* @throws Horde_Perms_Exception
*/
public function newPermission($name, $type = 'matrix', $params = null)
{
throw new Horde_Perms_Exception();
}
/**
* Returns an object corresponding to the named permission, with the users
* and other data retrieved appropriately.
*
* @param string $name The name of the permission to retrieve.
*
* @return Horde_Perms_Permission A permissions object.
* @throws Horde_Perms_Exception
*/
public function getPermission($name)
{
throw new Horde_Perms_Exception();
}
/**
* Returns an object corresponding to the given unique ID, with the users
* and other data retrieved appropriately.
*
* @param integer $cid The unique ID of the permission to retrieve.
*
* @return Horde_Perms_Permission A permissions object.
* @throws Horde_Perms_Exception
*/
public function getPermissionById($cid)
{
throw new Horde_Perms_Exception();
}
/**
* Adds a permission to the permissions system. The permission must first
* be created with newPermission(), and have any initial users added to
* it, before this function is called.
*
* @param Horde_Perms_Permission $perm The permissions object.
*
* @throws Horde_Perms_Exception
*/
public function addPermission(Horde_Perms_Permission $perm)
{
throw new Horde_Perms_Exception();
}
/**
* Removes a permission from the permissions system permanently.
*
* @param Horde_Perms_Permission $perm The permission to remove.
* @param boolean $force Force to remove every child.
*
* @throws Horde_Perms_Exception
*/
public function removePermission(Horde_Perms_Permission $perm,
$force = false)
{
throw new Horde_Perms_Exception();
}
/**
* Returns the unique identifier of this permission.
*
* @param Horde_Perms_Permission $permission The permission object to get
* the ID of.
*
* @return integer The unique id.
* @throws Horde_Perms_Exception
*/
public function getPermissionId($permission)
{
throw new Horde_Perms_Exception();
}
/**
* Checks if a permission exists in the system.
*
* @param string $permission The permission to check.
*
* @return boolean True if the permission exists.
*/
public function exists($permission)
{
return false;
}
/**
* Returns a list of parent permissions.
*
* @param string $child The name of the child to retrieve parents for.
*
* @return array A hash with all parents in a tree format.
* @throws Horde_Perms_Exception
*/
public function getParents($child)
{
throw new Horde_Perms_Exception();
}
/**
* Returns all permissions of the system in a tree format.
*
* @return array A hash with all permissions in a tree format.
*/
public function getTree()
{
return array();
}
}
|