PHP Class Gc\View\Collection

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

Protected Properties

Свойство Type Description
$elements array List of \Gc\View\Model
$name string Table name

Méthodes publiques

Méthode Description
addElement ( Model $view ) : Collection Add view
clearElements ( ) : Collection Clear elements
delete ( ) : boolean delete properties
getElements ( ) : array Get all elements store in $elements
getSelect ( ) : array Get array for input select
getViews ( boolean $forceReload = false ) : array Get views
init ( integer $documentTypeId = null ) : void Initiliaze collection
save ( ) : boolean Save properties

Method Details

addElement() public méthode

Add view
public addElement ( Model $view ) : Collection
$view Model View model
Résultat Collection

clearElements() public méthode

Clear elements
public clearElements ( ) : Collection
Résultat Collection

delete() public méthode

delete properties
public delete ( ) : boolean
Résultat boolean

getElements() public méthode

Get all elements store in $elements
public getElements ( ) : array
Résultat array

getSelect() public méthode

Get array for input select
public getSelect ( ) : array
Résultat array

getViews() public méthode

Get views
public getViews ( boolean $forceReload = false ) : array
$forceReload boolean To initiliaze views
Résultat array

init() public méthode

Initiliaze collection
public init ( integer $documentTypeId = null ) : void
$documentTypeId integer Optional document type id
Résultat void

save() public méthode

Save properties
public save ( ) : boolean
Résultat boolean

Property Details

$elements protected_oe property

List of \Gc\View\Model
protected array $elements
Résultat array

$name protected_oe property

Table name
protected string $name
Résultat string