Changeset 14045
- Timestamp:
- 12/20/07 15:48:40 (9 months ago)
- Files:
-
- trunk/midcom/midcom.core/midcom/baseclasses/components/interface.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/core/manifest.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/helper/configuration.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/helper/itemlist.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/services/auth.php (modified) (15 diffs)
- trunk/midcom/midcom.helper.datamanager/widget_text.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/baseclasses/components/interface.php
r14002 r14045 741 741 * 742 742 * @param string $groupname The local groupname (that is, without the component prefix) of the virtual group to query. 743 * @return Array A ccociative user->id => user_object listing of all member users or null on failure.743 * @return Array Associative user->id => user_object listing of all member users or null on failure. 744 744 */ 745 745 public function retrieve_vgroup_members ($groupname) trunk/midcom/midcom.core/midcom/core/manifest.php
r14002 r14045 105 105 * 106 106 * In this case the definition grants object owners the defined privilege. The 107 * only way this can be overrid en now is having the privilege denied to the107 * only way this can be overridden now is having the privilege denied to the 108 108 * accessing user directly (e.g. a person privilege). 109 109 * trunk/midcom/midcom.core/midcom/helper/configuration.php
r13884 r14045 56 56 57 57 /** 58 * Locally overrid en configuration data.58 * Locally overridden configuration data. 59 59 * 60 60 * @var Array trunk/midcom/midcom.core/midcom/helper/itemlist.php
r13303 r14045 67 67 * Returns the sorted list for this topic according to our sorting criteria. 68 68 * 69 * It has to be overrid en. Call generate_error on any critical failure.69 * It has to be overridden. Call generate_error on any critical failure. 70 70 * 71 71 * @return Array An array of all objects. trunk/midcom/midcom.core/midcom/services/auth.php
r14002 r14045 683 683 * 684 684 * @param string $privilege The privilege to check for 685 * @return bool True if the privilege has been grante , false otherwise.685 * @return bool True if the privilege has been granted, false otherwise. 686 686 * @access private 687 687 * @see $_internal_sudo … … 713 713 * @param midcom_core_user $user The user against which to check the privilege, defaults to the currently authenticated user. 714 714 * You may specify "EVERYONE" instead of an object to check what an anonymous user can do. 715 * @return bool True if the privilege has been grante , false otherwise.715 * @return bool True if the privilege has been granted, false otherwise. 716 716 */ 717 717 function can_do($privilege, &$content_object, $user = null) … … 736 736 * @param midcom_core_user $user The user against which to check the privilege, defaults to the currently authenticated user. 737 737 * You may specify "EVERYONE" instead of an object to check what an anonymous user can do. 738 * @return bool True if the privilege has been grante , false otherwise.738 * @return bool True if the privilege has been granted, false otherwise. 739 739 */ 740 740 function can_do_byguid($privilege, $object_guid, $object_class, $user = null) … … 823 823 /** 824 824 * Checks, whether the given user have the privilege assigned to him in general. 825 * Be aware, that this does not take any permissions overrid en by content objects825 * Be aware, that this does not take any permissions overridden by content objects 826 826 * into account. Whenever possible, you should user the can_do() variant of this 827 827 * call therefore. can_user_do is only of interest in cases where you do not have … … 833 833 * @param string $class Optional parameter to set if the check should take type specific permissions into account. The class must be default constructible. 834 834 * @param string $component Component providing the class 835 * @return bool True if the privilege has been grante , false otherwise.835 * @return bool True if the privilege has been granted, false otherwise. 836 836 */ 837 837 function can_user_do($privilege, $user = null, $class = null, $component = null) … … 981 981 * 982 982 * The information is cached per object-guid during runtime, so that repeated checks 983 * to the same object do not cause repeat eing checks. Be aware that this means, that983 * to the same object do not cause repeating checks. Be aware that this means, that 984 984 * new privileges set are not guaranteed to take effect until the next request. 985 985 * … … 987 987 * @param midcom_core_user $user The user against which to check the privilege, defaults to the currently authenticated user. 988 988 * You may specify "EVERYONE" instead of an object to check what an anonymous user can do. 989 * @return Array A ccociative listing of all privileges and their value.989 * @return Array Associative listing of all privileges and their value. 990 990 */ 991 991 function get_privileges(&$content_object, $user = null) … … 996 996 /** 997 997 * Returns a full listing of all currently known privileges for a certain object/user 998 * combination (object is spe ificied by guid/class combination)998 * combination (object is specified by guid/class combination) 999 999 * 1000 1000 * The information is cached per object-guid during runtime, so that repeated checks 1001 * to the same object do not cause repeat eing checks. Be aware that this means, that1001 * to the same object do not cause repeating checks. Be aware that this means, that 1002 1002 * new privileges set are not guaranteed to take effect until the next request. 1003 1003 * … … 1006 1006 * @param midcom_core_user $user The user against which to check the privilege, defaults to the currently authenticated user. 1007 1007 * You may specify "EVERYONE" instead of an object to check what an anonymous user can do. 1008 * @return Array A ccociative listing of all privileges and their value.1008 * @return Array Associative listing of all privileges and their value. 1009 1009 */ 1010 1010 function get_privileges_byguid($object_guid, $object_class, $user = null) … … 1174 1174 1175 1175 /** 1176 * Drops previously a quired superuser privileges.1176 * Drops previously acquired superuser privileges. 1177 1177 * 1178 1178 * @see request_sudo() … … 1199 1199 * against the currently authenticated user. 1200 1200 * 1201 * It always returns TRUE for admi strative users.1201 * It always returns TRUE for administrative users. 1202 1202 * 1203 1203 * @param mixed $group Group to check against, this can be either a midcom_core_group object or a group string identifier. … … 1241 1241 * content object passed to the function. 1242 1242 * 1243 * If this is not the case, an Access Denied error is gener eted, the message1243 * If this is not the case, an Access Denied error is generated, the message 1244 1244 * defaulting to the string 'access denied: privilege %s not granted' of the 1245 1245 * MidCOM main L10n table. … … 1268 1268 /** 1269 1269 * Validates, whether the given user have the privilege assigned to him in general. 1270 * Be aware, that this does not take any permissions overrid en by content objects1270 * Be aware, that this does not take any permissions overridden by content objects 1271 1271 * into account. Whenever possible, you should user the can_do() variant of this 1272 1272 * call therefore. can_user_do is only of interest in cases where you do not have 1273 1273 * any content object available, for example when creating root topics. 1274 1274 * 1275 * If this is not the case, an Access Denied error is gener eted, the message1275 * If this is not the case, an Access Denied error is generated, the message 1276 1276 * defaulting to the string 'access denied: privilege %s not granted' of the 1277 1277 * MidCOM main L10n table. … … 1302 1302 * Validates that the current user is a member of the given group. 1303 1303 * 1304 * If this is not the case, an Access Denied error is gener eted, the message1304 * If this is not the case, an Access Denied error is generated, the message 1305 1305 * defaulting to the string 'access denied: user is not member of the group %s' of the 1306 1306 * MidCOM main L10n table. … … 2018 2018 * message is shown. 2019 2019 * - If the user is authenticated, a note that he might have to switch to a user with more 2020 * privi eleges is shown.2020 * privileges is shown. 2021 2021 * - Otherwise, no message is shown. 2022 2022 * trunk/midcom/midcom.helper.datamanager/widget_text.php
r1978 r14045 260 260 261 261 /** 262 * Overrid en to handle the password style widget. It mustn't262 * Overridden to handle the password style widget. It mustn't 263 263 * update in certain cases. 264 264 */
