ezic

Extends \creditcard

This is the class expRecord

subpackage

Calculators

package

Modules

Methods

__construct

__construct(null $params = null, boolean $get_assoc = true, boolean $get_attached = true) 
inherited
Throws
\ReflectionException

Arguments

$params

null

$get_assoc

boolean

$get_attached

boolean

after creating item

afterCreate() 
inherited

is run after deleting item, should delete associated items here if needed

afterDelete() 
inherited

after saving item

afterSave() 
inherited

after updating item

afterUpdate() 
inherited

after validating item

afterValidation() 
inherited

after validating item during creation

afterValidationOnCreate() 
inherited

after validating item during update

afterValidationOnUpdate() 
inherited

get objects this item belongs to ??

associateWith( $datatype,  $id) 
inherited

Type of associations has_and_belongs_to_many

Arguments

$datatype

$id

attach to item

attachItem( $item, string $subtype = '', boolean $replace = true) : boolean
inherited

Arguments

$item

$subtype

string

$replace

boolean

Response

boolean

before creating item

beforeCreate() 
inherited

is run before deleting item

beforeDelete() 
inherited

before saving item

beforeSave() 
inherited

before updating item

beforeUpdate() 
inherited

before validating item

beforeValidation() 
inherited

before validating item during creation

beforeValidationOnCreate() 
inherited

before validating item during update

beforeValidationOnUpdate() 
inherited

Adds table fields as class properties to current "record" class.

build(mixed $params = array()) 
inherited

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

Arguments

$params

mixed

array or Object for table selection

captureEnabled

captureEnabled() 
inherited

check for what objects may be attached

checkForAttachableItems( $params) : boolean
inherited

Arguments

$params

Response

boolean

configForm

configForm() 
inherited

createBillingTransaction

createBillingTransaction( $method,  $amount,  $result,  $trax_state) 
inherited

Arguments

$method

$amount

$result

$trax_state

credit_transaction

credit_transaction( $method,  $amount,  $order) 
inherited

Arguments

$method

$amount

$order

creditEnabled

creditEnabled() 
inherited

delayed_capture

delayed_capture( $billingmethod,  $amount,  $order) 
inherited

Arguments

$billingmethod

$amount

$order

delete item

delete(string $where = '') : boolean
inherited

Arguments

$where

string

Response

boolean

description

description() 

find an item or items

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
inherited

Arguments

$range

string

$where

null

$order

null

$limit

null

$limitstart

integer

$get_assoc

boolean

$get_attached

boolean

$except

array

$cascade_except

boolean

Response

array|integer

find an item by column

findBy( $column,  $value, boolean $get_assoc = true, boolean $get_attached = true, array $except = array(), boolean $cascade_except = false) : array
inherited

Arguments

$column

$value

$get_assoc

boolean

$get_attached

boolean

$except

array

$cascade_except

boolean

Response

array

find a value(s) by column

findValue(string $range = 'all', string $column, string $where = null, string $order = null, boolean $distinct = false) : array|boolean
inherited

Arguments

$range

string

$column

string

$where

string

$order

string

$distinct

boolean

Response

array|boolean

this function finds models that have this attachable item attached

findWhereAttachedTo( $content_type) : array
inherited

Arguments

$content_type

Response

array

formatCreditCard

formatCreditCard( $cc,  $cc_type) 
inherited

Arguments

$cc

$cc_type

get item's associated objects

getAssociatedObjects(null $obj = null) : null
inherited

Type of associations has_one has_many has_and_belongs_to_many

Arguments

$obj

null

Response

null

gets associated objects for this model

getAssociatedObjectsForThisModel(array $except = array(), boolean $cascade_except = false) 
inherited

Type of associations has_extended_fields has_one has_many has_many_self has_and_belongs_to_many has_and_belongs_to_self

Arguments

$except

array

$cascade_except

boolean

get attached objects for this item

getAttachableItems() 
inherited

used for import/export

getAttachableItemTables() : array
inherited

Response

array

getAvailableCards

getAvailableCards() 
inherited

getAVSAddressVerified

getAVSAddressVerified( $billingmethod) 
inherited

Arguments

$billingmethod

getAVSZipVerified

getAVSZipVerified( $billingmethod) 
inherited

Arguments

$billingmethod

Return billing calculator name

getCalcName( $calc_id) : null
inherited static

Arguments

$calc_id

Response

null

Return billing calculator title

getCalcTitle( $calc_id) : null
inherited static

Arguments

$calc_id

Response

null

getCVVMatched

getCVVMatched( $billingmethod) 
inherited

Arguments

$billingmethod

Return default billing calculator

getDefault() 
inherited static

getPaymentAuthorizationNumber

getPaymentAuthorizationNumber( $billingmethod) 
inherited

Arguments

$billingmethod

getPaymentMethod

getPaymentMethod( $billingmethod) 
inherited

Arguments

$billingmethod

getPaymentReferenceNumber

getPaymentReferenceNumber( $billingmethod) 
inherited

Arguments

$billingmethod

getPaymentStatus

getPaymentStatus( $billingmethod) 
inherited

Arguments

$billingmethod

return the item poster

getPoster(null $display = null) : null|string
inherited

Arguments

$display

null

Response

null|string

return the item timestamp

getTimestamp(integer $type) : mixed
inherited

Arguments

$type

integer

Response

mixed

hasConfig

hasConfig() 
inherited

hasUserForm

hasUserForm() 
inherited

htmlmessage

htmlmessage( $opts) 

Arguments

$opts

isOffsite

isOffsite() 
inherited

isRestricted

isRestricted() 
inherited

is model content searchable?

isSearchable() : boolean
inherited static

Response

boolean

Is this billing calculator selectable in the payment methods. It may not be if it is meant more as base class for other calculators to extend from

isSelectable() : boolean
inherited

Response

boolean

create a many to many table relationship

makeManyToManyTablename( $assoc_table) : string
inherited

Arguments

$assoc_table

Response

string

make an sef_url for item

makeSefUrl() 
inherited

name of module for backwards compat with old modules

name() : string
inherited

Response

string

parseConfig

parseConfig( $values) 
inherited

Arguments

$values

postProcess

postProcess( $order,  $params) 
inherited

Arguments

$order

$params

pre_process

pre_process() 

Called for billing method selection screen, return true if it's a valid billing method.

preprocess( $method,  $opts,  $params,  $order) 
inherited

Arguments

$method

$opts

$params

$order

process

process( $method,  $opts,  $params,  $order) 
inherited

Arguments

$method

$opts

$params

$order

re-construct the item from the database

refresh() : boolean
inherited
Throws
\ReflectionException

Response

boolean

rerank items

rerank( $direction, string $where = '') 
inherited

Arguments

$direction

$where

string

save item

save(boolean $validate = false, boolean $force_no_revisions = false) 
inherited

Arguments

$validate

boolean

$force_no_revisions

boolean

save associated objects

saveAssociatedObjects() 
inherited

Type of associations has_one

showOptions

showOptions() 
inherited

textmessage

textmessage( $opts) 

Arguments

$opts

update item

update(array|object $params = array()) 
inherited

Arguments

$params

array|object

userForm

userForm( $config_object = null,  $user_data = null) 
inherited

Arguments

$config_object

$user_data

process user input. This function should return an object of the user input.

userFormUpdate( $params) 
inherited

the returned object will be saved in the session and passed to post_process. If need be this could use another method of data storage, as long post_process can get the data.

Arguments

$params

Should return html to display user data.

userView( $billingmethod) : string
inherited

Arguments

$billingmethod

Response

string

validate item sef_url

validate() : boolean
inherited

Response

boolean

validate_card_expire

validate_card_expire( $mmyy) 
inherited

Arguments

$mmyy

validate_card_number

validate_card_number( $card_number) 
inherited

Arguments

$card_number

validate_card_type

validate_card_type( $cc_num,  $type) 
inherited

Arguments

$cc_num

$type

validate_cvv

validate_cvv( $cvv) 
inherited

Arguments

$cvv

view

view( $config_object) 

Arguments

$config_object

void_transaction

void_transaction( $billingmethod,  $order) 
inherited

Arguments

$billingmethod

$order

voidEnabled

voidEnabled() 
inherited

Properties

title

title : 

Type(s)

payment_type

payment_type : 
inherited

Type(s)

cards

cards : 
inherited

Type(s)

card_images

card_images : 
inherited

Type(s)

table

table : 
inherited

Type(s)

configdata

configdata : 
inherited

Type(s)

classinfo

classinfo : 
inherited

Type(s)

classname

classname : 
inherited

Type(s)

tablename

tablename : 
inherited

Type(s)

identifier

identifier : 
inherited

Type(s)

rank_by_field

rank_by_field : 
inherited

Type(s)

grouping_sql

grouping_sql : 
inherited

Type(s)

has_extended_fields

has_extended_fields : 
inherited

Type(s)

has_one

has_one : 
inherited

Type(s)

has_many

has_many : 
inherited

Type(s)

has_many_self

has_many_self : 
inherited

Type(s)

has_and_belongs_to_many

has_and_belongs_to_many : 
inherited

Type(s)

has_and_belongs_to_self

has_and_belongs_to_self : 
inherited

Type(s)

default_sort_field

default_sort_field : 
inherited

Type(s)

default_sort_direction

default_sort_direction : 
inherited

Type(s)

get_assoc_for

get_assoc_for : 
inherited

Type(s)

attachable_item_types

attachable_item_types : 
inherited

Type(s)

attachable_items_to_save

attachable_items_to_save : 
inherited

Type(s)

get_attachable_for

get_attachable_for : 
inherited

Type(s)

validate

validate : 
inherited

Type(s)

do_not_validate

do_not_validate : 
inherited

Type(s)

supports_revisions

supports_revisions : 
inherited

Type(s)

needs_approval

needs_approval : 
inherited

Type(s)