PHP Class Pimcore\Model\Object\QuantityValue\Unit

Inheritance: extends Pimcore\Model\AbstractModel
Datei anzeigen Open project: pimcore/pimcore Class Usage Examples

Public Properties

Property Type Description
$abbreviation string
$baseunit string
$conversionOffset double
$factor double
$group string
$id integer
$longname string
$reference string

Public Methods

Method Description
__toString ( )
create ( array $values = [] ) : Unit
delete ( ) : void
getAbbreviation ( )
getBaseunit ( )
getByAbbreviation ( string $abbreviation ) : Unit
getById ( string $id ) : Unit
getByReference ( string $reference ) : Unit
getConversionOffset ( ) : float
getFactor ( )
getGroup ( )
getId ( )
getLongname ( )
getReference ( ) : string
save ( ) : void
setAbbreviation ( $abbreviation )
setBaseunit ( $baseunit )
setConversionOffset ( float $conversionOffset )
setFactor ( $factor )
setGroup ( $group )
setId ( $id )
setLongname ( $longname )
setReference ( string $reference )

Method Details

__toString() public method

public __toString ( )

create() public static method

public static create ( array $values = [] ) : Unit
$values array
return Unit

delete() public method

public delete ( ) : void
return void

getAbbreviation() public method

public getAbbreviation ( )

getBaseunit() public method

public getBaseunit ( )

getByAbbreviation() public static method

public static getByAbbreviation ( string $abbreviation ) : Unit
$abbreviation string
return Unit

getById() public static method

public static getById ( string $id ) : Unit
$id string
return Unit

getByReference() public static method

public static getByReference ( string $reference ) : Unit
$reference string
return Unit

getConversionOffset() public method

public getConversionOffset ( ) : float
return float

getFactor() public method

public getFactor ( )

getGroup() public method

public getGroup ( )

getId() public method

public getId ( )

getLongname() public method

public getLongname ( )

getReference() public method

public getReference ( ) : string
return string

save() public method

public save ( ) : void
return void

setAbbreviation() public method

public setAbbreviation ( $abbreviation )

setBaseunit() public method

public setBaseunit ( $baseunit )

setConversionOffset() public method

public setConversionOffset ( float $conversionOffset )
$conversionOffset float

setFactor() public method

public setFactor ( $factor )

setGroup() public method

public setGroup ( $group )

setId() public method

public setId ( $id )

setLongname() public method

public setLongname ( $longname )

setReference() public method

public setReference ( string $reference )
$reference string

Property Details

$abbreviation public_oe property

public string $abbreviation
return string

$baseunit public_oe property

public string $baseunit
return string

$conversionOffset public_oe property

public double $conversionOffset
return double

$factor public_oe property

public double $factor
return double

$group public_oe property

public string $group
return string

$id public_oe property

public int $id
return integer

$longname public_oe property

public string $longname
return string

$reference public_oe property

public string $reference
return string