PHP Class Gc\Property\Model

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

Protected Properties

Свойство Type Description
$name string Table name
$value Gc\Property\Value\Model Accessor for \Gc\Property\Value\Model

Méthodes publiques

Méthode Description
delete ( ) : boolean Delete property
fromArray ( array $array ) : Model Initiliaze model from array
fromId ( integer $propertyId ) : Model Initiliaze model from id
fromIdentifier ( string $identifier, integer $documentId ) : Model Initiliaze model from identifier
getValue ( ) : mixed Return property value
getValueModel ( ) : Model Return property value model
isRequired ( boolean $value = null ) : mixed Get if property is required or not
loadValue ( ) : Model Load property value
save ( ) : integer Save property
saveValue ( ) : boolean Save property value
setValue ( mixed $value ) : Model Set property value

Method Details

delete() public méthode

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

fromArray() public static méthode

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

fromId() public static méthode

Initiliaze model from id
public static fromId ( integer $propertyId ) : Model
$propertyId integer Property id
Résultat Model

fromIdentifier() public static méthode

Initiliaze model from identifier
public static fromIdentifier ( string $identifier, integer $documentId ) : Model
$identifier string Identifier
$documentId integer Document id
Résultat Model

getValue() public méthode

Return property value
public getValue ( ) : mixed
Résultat mixed

getValueModel() public méthode

Return property value model
public getValueModel ( ) : Model
Résultat Gc\Property\Value\Model

isRequired() public méthode

Get if property is required or not
public isRequired ( boolean $value = null ) : mixed
$value boolean Value
Résultat mixed

loadValue() public méthode

Load property value
public loadValue ( ) : Model
Résultat Model

save() public méthode

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

saveValue() public méthode

Save property value
public saveValue ( ) : boolean
Résultat boolean

setValue() public méthode

Set property value
public setValue ( mixed $value ) : Model
$value mixed Value
Résultat Model

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string

$value protected_oe property

Accessor for \Gc\Property\Value\Model
protected Model,Gc\Property\Value $value
Résultat Gc\Property\Value\Model