PHP Class Gc\Datatype\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 datatype model
fromArray ( array $array ) : Model Get Model from array
fromId ( integer $datatypeId ) : AbstractTable Get model from id
loadDatatype ( Zend\ServiceManager\ServiceManager $serviceManager, integer $datatypeId, integer $documentId = null ) : mixed Load Datatype
loadEditor ( Zend\ServiceManager\ServiceManager $serviceManager, Model $property ) : mixed Load editor
loadPrevalueEditor ( AbstractDatatype $datatype ) : Zend\Form\Fieldset Load prevalue editor
save ( ) : integer Save Datatype model
saveEditor ( Zend\ServiceManager\ServiceManager $serviceManager, Model $property ) : boolean Save editor
savePrevalueEditor ( AbstractDatatype $datatype ) : Model Save prevalue editor
setPrevalueValue ( mixed $value ) : Model Set prevalue value

Method Details

delete() public méthode

Delete datatype model
public delete ( ) : boolean
Résultat boolean

fromArray() public static méthode

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

fromId() public static méthode

Get model from id
public static fromId ( integer $datatypeId ) : AbstractTable
$datatypeId integer Datatype id
Résultat Gc\Db\AbstractTable

loadDatatype() public static méthode

Load Datatype
public static loadDatatype ( Zend\ServiceManager\ServiceManager $serviceManager, integer $datatypeId, integer $documentId = null ) : mixed
$serviceManager Zend\ServiceManager\ServiceManager Service manager
$datatypeId integer Datatype id
$documentId integer Optional document id
Résultat mixed

loadEditor() public static méthode

Load editor
public static loadEditor ( Zend\ServiceManager\ServiceManager $serviceManager, Model $property ) : mixed
$serviceManager Zend\ServiceManager\ServiceManager Service manager
$property Gc\Property\Model Property
Résultat mixed

loadPrevalueEditor() public static méthode

Load prevalue editor
public static loadPrevalueEditor ( AbstractDatatype $datatype ) : Zend\Form\Fieldset
$datatype AbstractDatatype Datatype
Résultat Zend\Form\Fieldset

save() public méthode

Save Datatype model
public save ( ) : integer
Résultat integer

saveEditor() public static méthode

Save editor
public static saveEditor ( Zend\ServiceManager\ServiceManager $serviceManager, Model $property ) : boolean
$serviceManager Zend\ServiceManager\ServiceManager Service manager
$property Gc\Property\Model Property
Résultat boolean

savePrevalueEditor() public static méthode

Save prevalue editor
public static savePrevalueEditor ( AbstractDatatype $datatype ) : Model
$datatype AbstractDatatype Datatype
Résultat Model

setPrevalueValue() public méthode

Set prevalue value
public setPrevalueValue ( mixed $value ) : Model
$value mixed Value
Résultat Model

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string