|
ultimix
|
Public Member Functions | |
| __construct () | |
| set_add_limitations ($theAddLimitation) | |
| unsafe_select ($Condition= '1=1') | |
| get_permit_by_name ($Permit) | |
| select ($Start=false, $Limit=false, $Field=false, $Order=false, $Condition= '1=1') | |
| create ($Record) | |
| delete ($id) | |
| select_list ($id) | |
| update ($id, $Record) | |
| get_permits_for_object ($id, $Type, $Default) | |
| get_permits_for_user_group ($uid) | |
| add_permit_for_object ($Permit, $Object, $ObjectType= 'page') | |
| set_permit_for_object ($Permit, $Object, $ObjectType= 'page') | |
| toggle_permit_for_object ($Permit, $Object, $ObjectType= 'page') | |
| delete_permit_for_object ($Permit, $Object, $ObjectType= 'page') | |
| get_permits_for_page ($Object) | |
Data Fields | |
| $NativeTable = '`umx_permit`' | |
| $CachedMultyFS = false | |
| $Database = false | |
| $DatabaseAlgorithms = false | |
| $Link = false | |
| $LinkDictionary = false | |
| $Security = false | |
| $SecurityParser = false | |
| $UserAlgorithms = false | |
| $PermitsCache = array() | |
| $AddLimitations = '1 = 1' | |
Class provides routine for permits.
Definition at line 26 of file permit_access.php.
| __construct | ( | ) |
Constructor.
| Exception | An exception of this type is thrown. |
Definition at line 85 of file permit_access.php.
| add_permit_for_object | ( | $Permit, | |
| $Object, | |||
$ObjectType = 'page' |
|||
| ) |
Function adds permit for object.
| $Permit | - Permit to add. |
| $Object | - Object. |
| $ObjectType | - Type of the object (may be menu, user, page). |
| Exception | An exception of this type is thrown. |
Definition at line 580 of file permit_access.php.
| create | ( | $Record | ) |
Creating record.
| $Record | Example for update. |
| Exception | An exception of this type is thrown. |
Definition at line 306 of file permit_access.php.
| delete | ( | $id | ) |
Deleting record from database.
| $id | - Comma separated list of record's id. |
| Exception | An exception of this type is thrown. |
Definition at line 340 of file permit_access.php.
| delete_permit_for_object | ( | $Permit, | |
| $Object, | |||
$ObjectType = 'page' |
|||
| ) |
Function deletes permit for object.
| $Permit | - Permit to delete. |
| $Object | - Object. |
| $ObjectType | - Type of the object (may be menu, user, page). |
| Exception | An exception of this type is thrown. |
Definition at line 741 of file permit_access.php.
| get_permit_by_name | ( | $Permit | ) |
Selecting record.
| $Permit | Permit's title. |
| Exception | An exception of this type is thrown. |
Definition at line 212 of file permit_access.php.
| get_permits_for_object | ( | $id, | |
| $Type, | |||
| $Default | |||
| ) |
Function returns permits for the object.
| $id | - Object's id. |
| $Type | - Object type. |
| $Default | - Default permits. |
| Exception | An exception of this type is thrown. |
Definition at line 476 of file permit_access.php.
| get_permits_for_page | ( | $Object | ) |
Function returns permits for the page.
| $Object | - Page to be accessed. |
| Exception | An exception of this type is thrown. |
Definition at line 788 of file permit_access.php.
| get_permits_for_user_group | ( | $uid | ) |
Function returns permits for the user.
| $uid | - User's id. |
| Exception | An exception of this type is thrown. |
Definition at line 526 of file permit_access.php.
| select | ( | $Start = false, |
|
$Limit = false, |
|||
$Field = false, |
|||
$Order = false, |
|||
$Condition = '1 = 1' |
|||
| ) |
Function returns list of records.
| $Start | - Number of the first record. |
| $Limit | - Count of records limitation. |
| $Field | - Field to sort by. |
| $Order | - Sorting order. |
| $Condition | - Additional conditions. |
| Exception | An exception of this type is thrown. |
Definition at line 271 of file permit_access.php.
| select_list | ( | $id | ) |
Function selects list of objects.
| $id | - Comma separated list of record's id. |
| Exception | An exception of this type is thrown. |
Definition at line 378 of file permit_access.php.
| set_add_limitations | ( | $theAddLimitation | ) |
Constructor.
Definition at line 126 of file permit_access.php.
| set_permit_for_object | ( | $Permit, | |
| $Object, | |||
$ObjectType = 'page' |
|||
| ) |
Function set permit for object.
| $Permit | - Permit to add. |
| $Object | - Object. |
| $ObjectType | - Type of the object (may be menu, user, page). |
| Exception | An exception of this type is thrown. |
Definition at line 634 of file permit_access.php.
| toggle_permit_for_object | ( | $Permit, | |
| $Object, | |||
$ObjectType = 'page' |
|||
| ) |
Function toggles permit for object.
| $Permit | - Permit to toggle. |
| $Object | - Object. |
| $ObjectType | - Type of the object (may be menu, user, page). |
| Exception | An exception of this type is thrown. |
Definition at line 685 of file permit_access.php.
| unsafe_select | ( | $Condition = '1 = 1' | ) |
Selecting records.
| $Condition | - records selection condition. |
| Exception | An exception of this type is thrown. |
Definition at line 167 of file permit_access.php.
| update | ( | $id, | |
| $Record | |||
| ) |
Updating record.
| $id | - Comma separated list of record's id. |
| $Record | - Example for creation. |
| Exception | An exception of this type is thrown. |
Definition at line 414 of file permit_access.php.
| $AddLimitations = '1 = 1' |
Definition at line 114 of file permit_access.php.
| $CachedMultyFS = false |
Cached objects.
Definition at line 50 of file permit_access.php.
| $Database = false |
Definition at line 51 of file permit_access.php.
| $DatabaseAlgorithms = false |
Definition at line 52 of file permit_access.php.
| $Link = false |
Definition at line 53 of file permit_access.php.
| $LinkDictionary = false |
Definition at line 54 of file permit_access.php.
| $NativeTable = '`umx_permit`' |
Table name in wich objects of this entity are stored.
Definition at line 38 of file permit_access.php.
| $PermitsCache = array() |
Cache of permits.
Definition at line 69 of file permit_access.php.
| $Security = false |
Definition at line 55 of file permit_access.php.
| $SecurityParser = false |
Definition at line 56 of file permit_access.php.
| $UserAlgorithms = false |
Definition at line 57 of file permit_access.php.