PHP Class Gc\Module\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 module
fromArray ( array $array ) : Model Initialize module from array
fromId ( array $moduleId ) : Model Initiliaze module from id
fromName ( array $moduleName ) : Model Initiliaze module from name
install ( Zend\ModuleManager\ModuleManager $moduleManager, string $moduleName ) : boolean | integer Install module
save ( ) : integer Save Model
uninstall ( AbstractModule $module, Model $model ) : boolean Uninstall from module name

Method Details

delete() public method

Delete module
public delete ( ) : boolean
return boolean

fromArray() public static method

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

fromId() public static method

Initiliaze module from id
public static fromId ( array $moduleId ) : Model
$moduleId array Module id
return Model

fromName() public static method

Initiliaze module from name
public static fromName ( array $moduleName ) : Model
$moduleName array Module name
return Model

install() public static method

Install module
public static install ( Zend\ModuleManager\ModuleManager $moduleManager, string $moduleName ) : boolean | integer
$moduleManager Zend\ModuleManager\ModuleManager Module manager
$moduleName string Module Name
return boolean | integer

save() public method

Save Model
public save ( ) : integer
return integer

uninstall() public static method

Uninstall from module name
public static uninstall ( AbstractModule $module, Model $model ) : boolean
$module AbstractModule Module
$model Model Module model
return boolean

Property Details

$name protected property

Table name
protected string $name
return string