class tree: 68Classifieds |
index: 68Classifieds |
all elements
Constructor Gateways (line 39)
callBack (line 117)
call_gateway (line 180)
changeStatus (line 208)
createForm (line 149)
exists (line 302)
getActiveGatewayList (line 68)
getAllGateways (line 49)
getGatewayByName (line 87)
regenerate (line 242)
Gateways
Description
Handles interaction with the Gateway system.
Please visit our knowledge base for more information on creating a new Payment Gateway.
Located in /includes/classes/kernel/Gateways.php (line 24)
Method Summary
Methods
Constructor Gateways (line 39)
Gateways constructor
Gateways
Gateways
(object database &$db)
- object database &$db: connection
callBack (line 117)
Handle the call back from the gateway file.
This uses the sr.php file and the _processTransaction function.
mixed
callBack
(string $name, array $params)
- string $name: The internal name of the gateway
- array $params: The passback parameters.
call_gateway (line 180)
Call Gateway
void
call_gateway
(string $function, array $params, string $type)
- string $function: String containing the function name.
- array $params: An array of parameters that are passed.
- string $type: The type of action. Default is user action.
changeStatus (line 208)
Change the status of a gateway
booleen
changeStatus
(int $id, string $state)
- int $id
- string $state
createForm (line 149)
Create the form from the sr.php file. This uses the _createForm function.
mixed
createForm
(int $id, array $params)
- int $id: The gateway id
- array $params: The needed parameters.
exists (line 302)
Checks if a gateway exists
boolean
exists
(string $gateway)
- string $gateway: The folder of the gateway.
getActiveGatewayList (line 68)
Gets all active gateways
array
getActiveGatewayList
()
getAllGateways (line 49)
Get a list of all the gateways
array
getAllGateways
()
getGatewayByName (line 87)
Get an active gateway by name
mixed
getGatewayByName
(string $name, [ $type = "user"])
- string $name: The name of the module.
- $type
regenerate (line 242)
Scans the gateways directory and add any new ones
void
regenerate
()

