PHP Class Gc\Tab\Collection

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
addTab ( array $array ) : void Add tab from array
delete ( ) : boolean Delete tabs
getImportableTabs ( integer $documentTypeId ) : array Return all tabs from collection
getTabs ( boolean $forceReload = false ) : array Return all tabs from collection
load ( integer $documentTypeId = null ) : Collection Initiliaze tab collection
save ( ) : void Save tabs
setTabs ( array $tabs ) : void Set tabs

Method Details

addTab() public method

Add tab from array
public addTab ( array $array ) : void
$array array Data
return void

delete() public method

Delete tabs
public delete ( ) : boolean
return boolean

getImportableTabs() public method

Return all tabs from collection
public getImportableTabs ( integer $documentTypeId ) : array
$documentTypeId integer Document type id
return array

getTabs() public method

Return all tabs from collection
public getTabs ( boolean $forceReload = false ) : array
$forceReload boolean Force reload collection
return array

load() public method

Initiliaze tab collection
public load ( integer $documentTypeId = null ) : Collection
$documentTypeId integer Optional document type id
return Collection

save() public method

Save tabs
public save ( ) : void
return void

setTabs() public method

Set tabs
public setTabs ( array $tabs ) : void
$tabs array of \Gc\Tab\Model
return void

Property Details

$name protected property

Table name
protected string $name
return string