Class Money
Implements the "Money" pattern.
- Object
-
ViewableData
implements
IteratorAggregate
-
DBField
-
Money
implements
CompositeDBField
Copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
License: New BSD License
See: http://www.martinfowler.com/eaaCatalog/money.html
Located at sapphire/core/model/fieldtypes/Money.php
Methods summary
public
|
|
public
array
|
#
compositeDatabaseFields( )
Return array in the format of |
public
|
|
public
|
#
writeToManipulation( array & $manipulation )
Prepare the current field for usage in a database-manipulation (works on a manipulation reference). |
public
|
#
addToQuery(
Add custom query parameters for this field, mostly SELECT statements for multi-value fields. |
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
float
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
isChanged( )
Determines if the field has been changed since its initialization. Most
likely relies on an internal flag thats changed when calling |
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
array
|
|
public
|
#
scaffoldFormField( string $title = null )
Returns a CompositeField instance used as a default for form scaffolding. |
public
string
|
#
__toString( )
For backwards compatibility reasons (mainly with ecommerce module), this
returns the amount value of the field, rather than a |
Methods inherited from DBField
ATT(),
HTML(),
HTMLATT(),
JS(),
LowerCase(),
RAW(),
RAWURLATT(),
URLATT(),
UpperCase(),
XML(),
create(),
debug(),
defaultSearchFilter(),
exists(),
forTemplate(),
getValue(),
nullValue(),
prepValueForDB(),
saveInto(),
scaffoldSearchField(),
setName(),
setTable()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
createMethod(),
create_from_string(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
protected
string
|
$currency |
#
$getCurrency() |
protected
float
|
$amount |
#
$currencyAmount |
protected
boolean
|
$isChanged |
#
$isChanged |
protected
string
|
$locale |
#
$locale |
protected
Zend_Currency
|
$currencyLib | |
protected
array
|
$allowedCurrencies |
#
Limit the currencies |
public static
array
|
$composite_db |
Properties inherited from DBField
$arrayValue,
$defaultVal,
$default_search_filter_class,
$escape_type,
$name,
$tableName,
$value
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems