A right to do or access something.
A right is accessed from the system by its $identname, not from its numeric ID.
package | dstruct_auth |
---|
__construct(mixed $row)
mixed
Database row or false.
addImpliedRight(\Right $right)
\Right
getID() : integer
integer
getIdentName() : string
This would typically be something readable such as 'access_reports' or 'edit_invoices'.
string
getImpliedRights() : object
object
A collection objectgetTitle(boolean $raw) : string
Typically something which would be displayed to users such as 'Access Reports' or 'Edit Invoices'.
boolean
Return raw or html encoded
string
loadByID(integer $id, array $row) : false | object
integer
array
Data for creating an instance of this class
false
object
False if object not foundremoveImpliedRight(\Right $right)
\Right
save()
setIdentName(string $name)
Should be all lower-case and only contain alpha-numerics and underscore
string
setTitle(string $title)
string
loadImpliedRights()
$id : integer
$identname : string
see | \getIdentName() |
---|
$impliedrights : null | object
$title : string
see | \getTitle() |
---|