PHP Class Gc\Media\Icon\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 icon
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $iconId ) : Model Initiliaze from id
save ( ) : integer Save icon

Method Details

delete() public method

Delete icon
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 $iconId ) : Model
$iconId integer Icon id
return Model

save() public method

Save icon
public save ( ) : integer
return integer

Property Details

$name protected property

Table name
protected string $name
return string