Group View code

Generic group class. This can be used for any logged in group or group related function.

property-read

The group id

since 0.9
package

CMS

license

GPL

Methods

validate() 

Validate this object.

Save() : boolean

Persists the group to the database.

Response

boolean

true if the save was successful, false if not.

Delete() : boolean

Deletes the group from the database

Response

boolean

True if the delete was successful, false if not.

load(integer $id) : \Group

Load a Group given it's id.

static

Arguments

integer $id

Response

\Group

load_all() : array

Load all groups

static

Response

array

Array of group records.

Properties

name

name : string

The group name

Type(s)

string

description

description : string

The group description

Type(s)

string

active

active : boolean

Indicates active status of this group.

Type(s)

boolean

id

id : integer

The group id

Type(s)

integer