PHP Class Gc\Datatype\Model

Inheritance: extends Gc\Db\AbstractTable
Mostra file Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

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

Delete datatype model
public delete ( ) : boolean
return boolean

fromArray() public static method

Get Model from array
public static fromArray ( array $array ) : Model
$array array Data
return Model

fromId() public static method

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

loadDatatype() public static method

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
return mixed

loadEditor() public static method

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

loadPrevalueEditor() public static method

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

save() public method

Save Datatype model
public save ( ) : integer
return integer

saveEditor() public static method

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

savePrevalueEditor() public static method

Save prevalue editor
public static savePrevalueEditor ( AbstractDatatype $datatype ) : Model
$datatype AbstractDatatype Datatype
return Model

setPrevalueValue() public method

Set prevalue value
public setPrevalueValue ( mixed $value ) : Model
$value mixed Value
return Model

Property Details

$name protected_oe property

Table name
protected string $name
return string