This is the class expRecord
subpackage |
Models |
---|---|
package |
Modules |
__construct(null $params = null, boolean $get_assoc = true, boolean $get_attached = true)
Throws |
|
---|
null
boolean
boolean
afterCreate()
afterDelete()
afterSave()
afterUpdate()
afterValidation()
afterValidationOnCreate()
afterValidationOnUpdate()
associateWith( $datatype, $id)
Type of associations has_and_belongs_to_many
attachItem( $item, string $subtype = '', boolean $replace = true) : boolean
string
boolean
boolean
beforeCreate()
beforeDelete()
beforeSave()
beforeUpdate()
beforeValidation()
beforeValidationOnCreate()
beforeValidationOnUpdate()
build(mixed $params = array())
Loads Table schema data and creates new class properties based upon the fields in given table.
Additionally, if a record ID is given, that record is pulled and field values are also populated into class properties.
category |
db_record |
---|---|
uses |
Builds a data definition from existing table. |
requires |
$db |
access |
protected |
final | |
PHPUnit |
Not Defined |
global |
object $db |
mixed
array or Object for table selection
calculateGrandTotal()
checkForAttachableItems( $params) : boolean
boolean
cleanOrderitems()
countOrderitemsByShippingmethod( $shippingmethod_id)
delete(string $where = '') : boolean
string
boolean
find(string $range = 'all', null $where = null, null $order = null, null $limit = null, integer $limitstart, boolean $get_assoc = true, boolean $get_attached = true, array $except = array(), boolean $cascade_except = false) : array|integer
string
null
null
null
integer
boolean
boolean
array
boolean
array|integer
findBy( $column, $value, boolean $get_assoc = true, boolean $get_attached = true, array $except = array(), boolean $cascade_except = false) : array
boolean
boolean
array
boolean
array
findValue(string $range = 'all', string $column, string $where = null, string $order = null, boolean $distinct = false) : array|boolean
string
string
string
string
boolean
array|boolean
findWhereAttachedTo( $content_type) : array
array
forcedShipping() : boolean
boolean
getAssociatedObjects(null $obj = null) : null
Type of associations has_one has_many has_and_belongs_to_many
null
null
getAssociatedObjectsForThisModel(array $except = array(), boolean $cascade_except = false)
Type of associations has_extended_fields has_one has_many has_many_self has_and_belongs_to_many has_and_belongs_to_self
array
boolean
getAttachableItems()
getAttachableItemTables() : array
array
getBillingMethods()
getCartTotal()
getCurrentBillingMethod()
getCurrentShippingMethod()
getDefaultOrderStatus()
getDefaultOrderType()
getForcedShippingMethod() : \shippingmethod
getInvoiceNumber(boolean $increment = true) : mixed|null
boolean
mixed|null
getOrderDiscounts()
getOrderitemsByShippingmethod( $shippingmethod_id)
getOrdersCount(string $state = 'new') : integer
string
integer
getOrderStatuses()
getOrderType()
getOrderTypes()
getPoster(null $display = null) : null|string
null
null|string
getSalesReps()
getShippingMethods()
getStatus()
getTimestamp(integer $type) : mixed
integer
mixed
getUserCart()
isItemInCart( $id, $type, $orderitem_id = null)
isSearchable() : boolean
boolean
makeManyToManyTablename( $assoc_table) : string
string
makeSefUrl()
mergeReturnCount( $merge_array = array())
name() : string
string
refresh() : boolean
Throws |
|
---|
boolean
rerank( $direction, string $where = '')
string
save(boolean $validate = false, boolean $force_no_revisions = false)
boolean
boolean
saveAssociatedObjects()
Type of associations has_one
setCartCookie( $cart)
setOrderStatus( $params)
setOrderType( $params)
setReferencingIds()
setReturnCount( $orig_referrer, $merge_array = array())
sortStatuses( $a, $b)
update(array|object $params = array())
array|object
validate() : boolean
boolean
validateDiscounts( $redirectOnFailureTo = array('controller' => 'cart', 'action' => 'show'))
table :
has_many :
has_one :
get_assoc_for :
total :
shippingmethods :
orderitem :
shipping_required :
billing_required :
product_discounts :
cart_discounts :
applied_discounts :
promos :
taxzones :
forced_shipping :
product_forcing_shipping :
shipping_taxed :
classinfo :
classname :
tablename :
identifier :
rank_by_field :
grouping_sql :
has_extended_fields :
has_many_self :
has_and_belongs_to_many :
has_and_belongs_to_self :
default_sort_field :
default_sort_direction :
attachable_item_types :
attachable_items_to_save :
get_attachable_for :
validate :
do_not_validate :
supports_revisions :
needs_approval :