PHP Class ActivityLog\Model\Event\Model

Inheritance: extends Gc\Db\AbstractTable
Show file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

Method Description
delete ( ) : boolean Delete event
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $id ) : boolean | Model Initiliaze from id
getUser ( ) : boolean | Model Retrieve user who trigger the event
save ( ) : integer | boolean Save event

Method Details

delete() public method

Delete event
public delete ( ) : boolean
return boolean

fromArray() public static method

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
return Model

fromId() public static method

Initiliaze from id
public static fromId ( integer $id ) : boolean | Model
$id integer Event id
return boolean | Model

getUser() public method

Retrieve user who trigger the event
public getUser ( ) : boolean | Model
return boolean | Gc\User\Model

save() public method

Save event
public save ( ) : integer | boolean
return integer | boolean

Property Details

$name protected property

Table name
protected string $name
return string