Public Method Details |
getAllGroups |
|
public array getAllGroups(object [unknown] &$record)
|
| |
ugid 0, the global group.
|
| Parameter |
|
| object [unknown] |
&$record |
|
|
|
|
| Returns |
array |
|
grant |
|
public void grant(int $record_id, int $ugid, string $priv)
|
| |
|
| Parameter |
|
| int |
$record_id |
|
|
The ID of the record to which the user should get privs |
|
|
| int |
$ugid |
|
|
The ID of the user or group record that gets privs to the record |
|
|
| string |
$priv |
|
|
'read' or 'write' |
|
| Returns |
void |
|
revoke |
|
public void revoke(int $record_id, int $ugid, string $priv)
|
| |
|
| Parameter |
|
| int |
$record_id |
|
|
The ID of the record to which the user should be denied privs |
|
|
| int |
$ugid |
|
|
The ID of the user or group record that loses privs to the record |
|
|
| string |
$priv |
|
|
'read' or 'write' |
|
| Returns |
void |
|
hasPriv |
|
public boolean hasPriv(integer $record_id, mixed $ugid, string $priv)
|
| |
|
| Parameter |
|
|
|
| mixed |
$ugid |
|
|
Single ugid or array of ugids |
|
|
| string |
$priv |
|
|
'read' or 'write' |
|
| Returns |
boolean |
|
update |
|
public boolean update(integer $record_id, int $ugid, string $priv, int $setting)
|
| |
|
| Parameter |
|
|
|
|
|
| string |
$priv |
|
|
'read' or 'write' |
|
|
| int |
$setting |
|
|
either 0 or 1 (shoulda used a boolean) |
|
| Returns |
boolean |
|