PHP Class Gc\Tab\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 tab
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $tabId ) : Model Initialize from id
getDocumentType ( ) : Model Get Document type
getProperties ( ) : array Return properties
load ( integer $tabId = null, integer $documentTypeId = null ) : Model Initiliaze Tab
save ( ) : integer Save tab

Method Details

delete() public méthode

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

fromArray() public static méthode

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

fromId() public static méthode

Initialize from id
public static fromId ( integer $tabId ) : Model
$tabId integer Tab id
Résultat Model

getDocumentType() public méthode

Get Document type
public getDocumentType ( ) : Model
Résultat Gc\DocumentType\Model

getProperties() public méthode

Return properties
public getProperties ( ) : array
Résultat array

load() public méthode

Initiliaze Tab
public load ( integer $tabId = null, integer $documentTypeId = null ) : Model
$tabId integer Optional tab id
$documentTypeId integer Optional document type id
Résultat Model

save() public méthode

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

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string