DataManager class for Auth system.
Usually extended by a DataManager class.
package | dstruct_auth |
---|---|
todo | Split out into separate DataManagers? |
attachAuthContainerToGroup(string $containername, string $containerid, integer $groupid) : boolean
string
string
integer
boolean
deleteGroupRight(integer $groupid, integer $rightid)
integer
integer
deleteImpliedRight(integer $rightid, integer $impliedid)
integer
integer
insertAuthContainer(string $id)
string
insertGroup(string $title) : integer
string
integer
insertGroupRight(integer $groupid, integer $rightid) : integer
integer
integer
integer
insertImpliedRight(integer $rightid, integer $impliedid) : integer
integer
integer
integer
insertRight(array $data) : integer
array
integer
loadGroupsByAuthContainer(string $containername, integer $containerid) : \DBIterator
removeAuthContainerFromGroup(\unknown $containername, \unknown $containerid, \unknown $groupid)
\unknown
\unknown
\unknown
updateAuthContainer(string $newid, string $oldid)
string
string
updateGroup(string $title, integer $id)
string
integer
updateRight(array $data)
array
doStatement(string $statement, array $values) : object
Caches prepared statements via prepareStatement().
inherited_from | \Base::doStatement() |
---|
string
SQL statement
array
Values for SQL statement
object
Executed PDO::StatementprepareStatement(string $statement) : object
If previously prepared, returns the cached statement
handle.
This method is usually called by doStatement().
inherited_from | \Base::prepareStatement() |
---|
string
SQL statement to prepare
object
PDO::Statement$statements : array
inherited_from | \Base::$$statements |
---|
$attach_authcontainer_to_group : string
$delete_group_right : string
$delete_implied_right : string
$insert_authcontainer : string
$insert_group : string
$insert_group_right : string
$insert_implied_right : string
$insert_right : string
$load_all_authcontainers : string
$load_all_groups : string
$load_all_rights : string
$load_authcontainer_by_id : string
$load_authcontainer_group : string
$load_group : string
$load_groups_by_auth_container : string
$load_implied_rights_by_right : string
We need to return a row with all the right details to create the object of we don't want round trips to the // db for every object created. So... we do the join
$load_right : string
$load_rights_by_group : string
$remove_authcontainer_from_group : string
$update_auth_container : string
$update_group : string
$update_right : string