CMS Made Simple API

Group
in package

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

Tags
since
0.9
license

GPL

Table of Contents

Properties

$active  : bool
$description  : string
$id  : int
$name  : string

Methods

Delete()  : bool
Deletes the group from the database
load()  : Group
Load a Group given it's id.
load_all()  : array<string|int, mixed>
Load all groups
Save()  : bool
Persists the group to the database.
validate()  : mixed
Validate this object.

Properties

Methods

Delete()

Deletes the group from the database

public Delete() : bool
Tags
throws
LogicException
Return values
bool

True if the delete was successful, false if not.

load_all()

Load all groups

public static load_all() : array<string|int, mixed>
Return values
array<string|int, mixed>

Array of group records.

Save()

Persists the group to the database.

public Save() : bool
Return values
bool

true if the save was successful, false if not.


        
On this page

Search results