PHP Class Pimcore\Model\Object\ClassDefinition\Data\CalculatedValue

Inheritance: extends Pimcore\Model\Object\ClassDefinition\Data
Show file Open project: pimcore/pimcore

Public Properties

Property Type Description
$calculatorClass string
$columnLength integer Column length
$fieldtype string Static type of this element
$phpdocType string Type for the generated phpdoc
$queryColumnType string Type for the column to query
$width float

Public Methods

Method Description
checkValidity ( mixed $data, boolean $omitMandatoryCheck = false ) Checks if data is valid for current data field
getCalculatorClass ( ) : string
getColumnLength ( ) : integer
getColumnType ( )
getDataForEditmode ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getDataForQueryResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getDataForResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getDataFromEditmode ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getDataFromResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getForCsvExport ( AbstractObject $object, array $params = [] ) : string converts object data to a simple string value or CSV Export
getForWebserviceExport ( string $object, mixed $params = [] ) : mixed converts data to be exposed via webservices
getFromCsvImport ( string $importValue, null | AbstractObject $object = null, mixed $params = [] ) : double fills object field data values from CSV Import String
getFromWebserviceImport ( mixed $value, null | AbstractObject $object = null, mixed $params = [], $idMapper = null ) : mixed converts data to be imported via webservices
getGetterCode ( $class ) : string Creates getter code which is used for generation of php file for object classes using this data type
getGetterCodeFieldcollection ( $fieldcollectionDefinition ) : string Creates getter code which is used for generation of php file for fieldcollectionk classes using this data type
getGetterCodeLocalizedfields ( $class ) : string Creates getter code which is used for generation of php file for localized fields in classes using this data type
getGetterCodeObjectbrick ( $brickClass ) : string Creates getter code which is used for generation of php file for object brick classes using this data type
getQueryColumnType ( ) : string
getSetterCode ( $class ) : string Creates setter code which is used for generation of php file for object classes using this data type
getSetterCodeFieldcollection ( $fieldcollectionDefinition ) : string Creates setter code which is used for generation of php file for fieldcollection classes using this data type
getSetterCodeLocalizedfields ( $class ) : string Creates setter code which is used for generation of php file for localized fields in classes using this data type
getSetterCodeObjectbrick ( $brickClass ) : string Creates setter code which is used for generation of php file for object brick classes using this data type
getVersionPreview ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
getWidth ( ) : integer
load ( )
save ( )
setCalculatorClass ( string $calculatorClass )
setColumnLength ( $columnLength )
setWidth ( integer $width ) : void

Method Details

checkValidity() public method

Checks if data is valid for current data field
public checkValidity ( mixed $data, boolean $omitMandatoryCheck = false )
$data mixed
$omitMandatoryCheck boolean

getCalculatorClass() public method

public getCalculatorClass ( ) : string
return string

getColumnLength() public method

public getColumnLength ( ) : integer
return integer

getColumnType() public method

public getColumnType ( )

getDataForEditmode() public method

See also: Object_Class_Data::getDataForEditmode
public getDataForEditmode ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getDataForQueryResource() public method

See also: Object_Class_Data::getDataForQueryResource
public getDataForQueryResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getDataForResource() public method

See also: Object_Class_Data::getDataForResource
public getDataForResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getDataFromEditmode() public method

See also: Object_Class_Data::getDataFromEditmode
public getDataFromEditmode ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getDataFromResource() public method

See also: Object_Class_Data::getDataFromResource
public getDataFromResource ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getForCsvExport() public method

converts object data to a simple string value or CSV Export
public getForCsvExport ( AbstractObject $object, array $params = [] ) : string
$object Pimcore\Model\Object\AbstractObject
$params array
return string

getForWebserviceExport() public method

converts data to be exposed via webservices
public getForWebserviceExport ( string $object, mixed $params = [] ) : mixed
$object string
$params mixed
return mixed

getFromCsvImport() public method

fills object field data values from CSV Import String
public getFromCsvImport ( string $importValue, null | AbstractObject $object = null, mixed $params = [] ) : double
$importValue string
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return double

getFromWebserviceImport() public method

converts data to be imported via webservices
public getFromWebserviceImport ( mixed $value, null | AbstractObject $object = null, mixed $params = [], $idMapper = null ) : mixed
$value mixed
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return mixed

getGetterCode() public method

Creates getter code which is used for generation of php file for object classes using this data type
public getGetterCode ( $class ) : string
$class
return string

getGetterCodeFieldcollection() public method

Creates getter code which is used for generation of php file for fieldcollectionk classes using this data type
public getGetterCodeFieldcollection ( $fieldcollectionDefinition ) : string
$fieldcollectionDefinition
return string

getGetterCodeLocalizedfields() public method

Creates getter code which is used for generation of php file for localized fields in classes using this data type
public getGetterCodeLocalizedfields ( $class ) : string
$class
return string

getGetterCodeObjectbrick() public method

Creates getter code which is used for generation of php file for object brick classes using this data type
public getGetterCodeObjectbrick ( $brickClass ) : string
$brickClass
return string

getQueryColumnType() public method

public getQueryColumnType ( ) : string
return string

getSetterCode() public method

Creates setter code which is used for generation of php file for object classes using this data type
public getSetterCode ( $class ) : string
$class
return string

getSetterCodeFieldcollection() public method

Creates setter code which is used for generation of php file for fieldcollection classes using this data type
public getSetterCodeFieldcollection ( $fieldcollectionDefinition ) : string
$fieldcollectionDefinition
return string

getSetterCodeLocalizedfields() public method

Creates setter code which is used for generation of php file for localized fields in classes using this data type
public getSetterCodeLocalizedfields ( $class ) : string
$class
return string

getSetterCodeObjectbrick() public method

Creates setter code which is used for generation of php file for object brick classes using this data type
public getSetterCodeObjectbrick ( $brickClass ) : string
$brickClass
return string

getVersionPreview() public method

See also: Object_Class_Data::getVersionPreview
public getVersionPreview ( float $data, null | AbstractObject $object = null, mixed $params = [] ) : float
$data float
$object null | Pimcore\Model\Object\AbstractObject
$params mixed
return float

getWidth() public method

public getWidth ( ) : integer
return integer

load() public method

public load ( )

save() public method

public save ( )

setCalculatorClass() public method

public setCalculatorClass ( string $calculatorClass )
$calculatorClass string

setColumnLength() public method

public setColumnLength ( $columnLength )
$columnLength

setWidth() public method

public setWidth ( integer $width ) : void
$width integer
return void

Property Details

$calculatorClass public property

public string $calculatorClass
return string

$columnLength public property

Column length
public int $columnLength
return integer

$fieldtype public property

Static type of this element
public string $fieldtype
return string

$phpdocType public property

Type for the generated phpdoc
public string $phpdocType
return string

$queryColumnType public property

Type for the column to query
public string $queryColumnType
return string

$width public property

public float $width
return float