- Class name: OrderPaymentCore
- Parent class: ObjectModel
- Source: classes/order/OrderPayment.php line 28
- $amount
- $card_brand
- $card_expiration
- $card_holder
- $card_number
- $conversion_rate
- $date_add
- $fieldsRequired
- $fieldsSize
- $fieldsValidate
- $id_currency
- $id_order
- $identifier
- $payment_method
- $table
- $transaction_id
- $_cache
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSizeLang
- $fieldsValidateLang
- $id
- $id_lang
- $id_shop
- $image_dir
- $image_format
- $langMultiShop
- $tables
- $webserviceParameters
- __construct
- add
- addFieldsRequiredDatabase
- associateTo
- clearCache
- delete
- deleteImage
- deleteSelection
- displayFieldName
- duplicateShops
- existsInDatabase
- getByOrderId
- getFields
- getFieldsRequiredDatabase
- getFieldsValidateLang
- getIdentifier
- getTranslationsFields
- getValidationRules
- getWebserviceObjectList
- getWebserviceParameters
- hydrate
- hydrateCollection
- isAssociatedToGroupShop
- isAssociatedToShop
- isCurrentlyUsed
- isLangMultishop
- makeTranslationFields
- save
- toggleStatus
- update
- validateControler
- validateController
- validateFields
- validateFieldsLang
public mixed $amount
- Visibility: public
- Source: classes/order/OrderPayment.php line 32.
public mixed $card_brand
- Visibility: public
- Source: classes/order/OrderPayment.php line 37.
public mixed $card_expiration
- Visibility: public
- Source: classes/order/OrderPayment.php line 38.
public mixed $card_holder
- Visibility: public
- Source: classes/order/OrderPayment.php line 39.
public mixed $card_number
- Visibility: public
- Source: classes/order/OrderPayment.php line 36.
public mixed $conversion_rate
- Visibility: public
- Source: classes/order/OrderPayment.php line 34.
public mixed $date_add
- Visibility: public
- Source: classes/order/OrderPayment.php line 40.
protected mixed $fieldsRequired = array('id_order', 'id_currency', 'amount')
- Visibility: protected
- Source: classes/order/OrderPayment.php line 42.
protected mixed $fieldsSize = array('transaction_id' => 254, 'card_number' => 254, 'card_brand' => 254, 'card_expiration' => 254, 'card_holder' => 254)
- Visibility: protected
- Source: classes/order/OrderPayment.php line 43.
protected mixed $fieldsValidate = array('id_order' => 'isUnsignedId', 'id_currency' => 'isUnsignedId', 'amount' => 'isPrice', 'payment_method' => 'isName', 'conversion_rate' => 'isFloat', 'transaction_id' => 'isAnything', 'card_number' => 'isAnything', 'card_brand' => 'isAnything', 'card_expiration' => 'isAnything', 'card_holder' => 'isAnything')
- Visibility: protected
- Source: classes/order/OrderPayment.php line 44.
public mixed $id_currency
- Visibility: public
- Source: classes/order/OrderPayment.php line 31.
public mixed $id_order
- Visibility: public
- Source: classes/order/OrderPayment.php line 30.
protected mixed $identifier = 'id_order_payment'
- Visibility: protected
- Source: classes/order/OrderPayment.php line 58.
public mixed $payment_method
- Visibility: public
- Source: classes/order/OrderPayment.php line 33.
protected mixed $table = 'order_payment'
- Visibility: protected
- Source: classes/order/OrderPayment.php line 57.
public mixed $transaction_id
- Visibility: public
- Source: classes/order/OrderPayment.php line 35.
protected mixed $_cache = array()
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 75.
protected \fieldsRequiredDatabase $fieldsRequiredDatabase = null
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 50.
protected array $fieldsRequiredLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 59.
protected array $fieldsSizeLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 62.
protected array $fieldsValidateLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 65.
public integer $id
- Visibility: public
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 31.
protected integer $id_lang = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 34.
protected mixed $id_shop = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 36.
protected string $image_dir = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 78.
protected string $image_format = 'jpg'
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 81.
protected mixed $langMultiShop = false
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 67.
protected array $tables = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 70.
protected array $webserviceParameters = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 73.
mixed ObjectModelCore::__construct(integer $id, integer $id_lang, $id_shop)
Build object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 115
- $id integer - Existing object id in order to load object (optional)
- $id_lang integer - Required if object is multilingual (optional)
- $id_shop mixed
mixed OrderPaymentCore::add($autodate, $nullValues)
- Visibility: public
- Source: classes/order/OrderPayment.php line 76
- $autodate mixed
- $nullValues mixed
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 780
- $fields mixed
boolean ObjectModelCore::associateTo(integer|array $id_shops, string $type)
This function associate an item to its context
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 828
- $id_shops integer|array
- $type string
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 794
- $all mixed
mixed ObjectModelCore::delete()
Delete current object from database
return boolean Deletion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 349
boolean ObjectModelCore::deleteImage()
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 898
mixed ObjectModelCore::deleteSelection($selection)
Delete several objects from database
return boolean Deletion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 387
- $selection mixed
mixed ObjectModelCore::displayFieldName($field, $className, $htmlentities, \Context $context)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 558
- $field mixed
- $className mixed
- $htmlentities mixed
- $context Context
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 868
- $id mixed
boolean ObjectModelCore::existsInDatabase($id_entity, $table)
Specify if an ObjectModel is already in database
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 931
- $id_entity mixed - entity id
- $table mixed
array OrderPaymentCore::getByOrderId(integer $id_order)
Get the detailed payment of an order
- Visibility: public
- This method is static.
- Source: classes/order/OrderPayment.php line 91
- $id_order integer
mixed OrderPaymentCore::getFields()
- Visibility: public
- Source: classes/order/OrderPayment.php line 60
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 772
- $all mixed
array ObjectModelCore::getFieldsValidateLang()
Get list of fields related to language to validate
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 975
string ObjectModelCore::getIdentifier()
Get object identifier name
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 964
mixed ObjectModelCore::getTranslationsFields(array $fieldsArray)
Prepare multilingual fields for database insertion
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 430
- $fieldsArray array - Multilingual fields to prepare return array Prepared fields for database insertion
array ObjectModelCore::getValidationRules(string $className)
Returns object validation rules (fields validity)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 89
- $className string - Child class name for static use (optional)
mixed ObjectModelCore::getWebserviceObjectList($sql_join, $sql_filter, $sql_sort, $sql_limit)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 747
- $sql_join mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
mixed ObjectModelCore::getWebserviceParameters($wsParamsAttributeName)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 617
- $wsParamsAttributeName mixed
mixed ObjectModelCore::hydrate(array $data, integer $id_lang)
Fill an object with given data. Data must be an array with this syntax: array(objProperty => value, objProperty2 => value, etc.)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 987
- $data array
- $id_lang integer
array ObjectModelCore::hydrateCollection(string $class, array $datas, integer $id_lang)
Fill (hydrate) a list of objects in order to get a collection of these objects
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1006
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang integer
boolean ObjectModelCore::isAssociatedToGroupShop(integer $id_group_shop)
Check if current object is associated to a group shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 854
- $id_group_shop integer
boolean ObjectModelCore::isAssociatedToShop(integer $id_shop)
Check if current object is associated to a shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 809
- $id_shop integer
boolean ObjectModelCore::isCurrentlyUsed(string $table, boolean $has_active_column)
This method is allow to know if a entity is currently used
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 948
- $table string - name of table linked to entity
- $has_active_column boolean - true if the table has an active column
mixed ObjectModelCore::isLangMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 888
mixed ObjectModelCore::makeTranslationFields($fields, $fieldsArray, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 447
- $fields mixed
- $fieldsArray mixed
- $id_language mixed
mixed ObjectModelCore::save($nullValues, $autodate)
Save current object to database (add or update)
return boolean Insertion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 192
- $nullValues mixed
- $autodate mixed
mixed ObjectModelCore::toggleStatus()
Toggle object status in database
return boolean Update result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 405
boolean ObjectModelCore::update($nullValues)
Update current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 274
- $nullValues mixed
mixed ObjectModelCore::validateControler($htmlentities)
TODO: refactor rename all calls to this to validateController
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 571
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 577
- $htmlentities mixed
mixed ObjectModelCore::validateFields($die, $errorReturn)
Check for fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 481
- $die mixed
- $errorReturn mixed
mixed ObjectModelCore::validateFieldsLang($die, $errorReturn)
Check for multilingual fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 514
- $die mixed
- $errorReturn mixed