Search:

# CWIS Developers Documentation

# PrivilegeFactory Class Reference

Factory which extracts all defined privileges from the database. More...

Collaboration diagram for PrivilegeFactory:

[legend]

## Setup/Initialization
| PrivilegeFactory ()
| Object constructor.
## Accessors
| GetPrivileges ($IncludePredefined=TRUE, $ReturnObjects=TRUE)
| Get all privileges.

List of all members.

## Detailed Description

Factory which extracts all defined privileges from the database.

Definition at line 24 of file PrivilegeFactory.php.

Inheritance diagram for PrivilegeFactory:

[legend]

## Member Function Documentation

PrivilegeFactory::GetPrivileges | ( | $ | IncludePredefined = `TRUE`,
|  | $ | ReturnObjects = `TRUE` |
| ) |  |  |

Get all privileges.

Parameters:

  | IncludePredefined | (OPTIONAL)
  | ReturnObjects | (OPTIONAL)

Returns:
  An array of privilege objects or strings with the priv id for the index

Definition at line 49 of file PrivilegeFactory.php.

References ItemFactory::GetItemNames().

PrivilegeFactory::PrivilegeFactory | ( |  | ) |

Object constructor.

Definition at line 32 of file PrivilegeFactory.php.

References ItemFactory::ItemFactory().

The documentation for this class was generated from the following file:

- PrivilegeFactory.php