Kajona\System\System\Rights

Class to handle all the right-stuff concerning system-records

Synopsis

class Rights {
}

Members

private

public

  • $STR_RIGHT_CHANGELOG
  • $STR_RIGHT_DELETE
  • $STR_RIGHT_EDIT
  • $STR_RIGHT_INHERIT
  • $STR_RIGHT_RIGHT
  • $STR_RIGHT_RIGHT1
  • $STR_RIGHT_RIGHT2
  • $STR_RIGHT_RIGHT3
  • $STR_RIGHT_RIGHT4
  • $STR_RIGHT_RIGHT5
  • $STR_RIGHT_VIEW

Methods

private

public

  • addGroupToRight() — Adds a group for a right at a given systemid <b>NOTE: By setting rights using this method, inheritance is set to false!!!</b>
  • addRowToCache() — Adds a row to the internal cache.
  • checkPermissionForGroup() — Validates, if a single group is granted a permission for a given systemid.
  • checkPermissionForUserId() — Checks if a given user-id is granted the passed permission for the passed systemid.
  • copyPermissions() — Copies permissions from one record to another record.
  • filterObjectsByRight() — Filters the given array of objects by the given permissions.
  • getArrayRights() — Returns a 2-dimensional Array containing the groups and the assigned rights.
  • getInstance() — Returns one Instance of the Rights-Object, using a singleton pattern
  • isInherited() — Looks up, whether a record intherits its' rights or not.
  • rebuildRightsStructure() — Helper, shouldn't be called in regular cases.
  • removeGroupFromRight() — Removes a group from a right at a given systemid <b>NOTE: By setting rights using this method, inheritance is set to false!!!</b>
  • rightChangelog() — Checks if the user has the right to edit the right5 of the record
  • rightDelete() — Checks if the user has the right to delete the record
  • rightEdit() — Checks if the user has the right to edit the record
  • rightRight() — Checks if the user has the right to edit the rights of the record
  • rightRight1() — Checks if the user has the right to edit the right1 of the record
  • rightRight2() — Checks if the user has the right to edit the right2 of the record
  • rightRight3() — Checks if the user has the right to edit the right3 of the record
  • rightRight4() — Checks if the user has the right to edit the right4 of the record
  • rightRight5() — Checks if the user has the right to edit the right5 of the record
  • rightView() — Checks if the user has the right to view the record
  • setBitTestMode() — Enables the internal testing mode.
  • setInherited() — Sets the inheritance-status for a single record
  • setRights() — Writes rights to the database.
  • validatePermissionString() — Validates a set of permissions for a single object.