PHP Class Gc\Tab\Model

Inheritance: extends Gc\Db\AbstractTable
Datei anzeigen Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

Method 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 method

Delete tab
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

Initialize from id
public static fromId ( integer $tabId ) : Model
$tabId integer Tab id
return Model

getDocumentType() public method

Get Document type
public getDocumentType ( ) : Model
return Gc\DocumentType\Model

getProperties() public method

Return properties
public getProperties ( ) : array
return array

load() public method

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

save() public method

Save tab
public save ( ) : integer
return integer

Property Details

$name protected_oe property

Table name
protected string $name
return string