PHP Class Gc\Module\Model

Inheritance: extends Gc\Db\AbstractTable
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode 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 méthode

Delete module
public delete ( ) : boolean
Résultat boolean

fromArray() public static méthode

Initialize module from array
public static fromArray ( array $array ) : Model
$array array Data
Résultat Model

fromId() public static méthode

Initiliaze module from id
public static fromId ( array $moduleId ) : Model
$moduleId array Module id
Résultat Model

fromName() public static méthode

Initiliaze module from name
public static fromName ( array $moduleName ) : Model
$moduleName array Module name
Résultat Model

install() public static méthode

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

save() public méthode

Save Model
public save ( ) : integer
Résultat integer

uninstall() public static méthode

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

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string