Web Marketing Tool
Reseller
WMT .
AbstractCredits
Referred By: Web Marketing Tool
Login

AbstractCredits





AbstractCredits PHP Methods

add(int $amount = 1) v5

Increases credits by amount.
PARAMETERS:
$amount = int, increament amount, default = 1.
RETURN VALUE:
VOID.

delete() v5

Deletes credits from a credits table for a specific member.
PARAMETERS:
NONE.
RETURN VALUE:
VOID.

edit(int $newAmount) v5

Edit amount of the credits to be the $newAmount.
PARAMETERS:
$newAmount = int, the credits new amount.
RETURN VALUE:
VOID.

get() v5

Gets the number of the credits for a specific member.
PARAMETERS:
NONE.
RETURN VALUE:
int = credits number.

getMemberID() v5

Gets the member ID.
PARAMETERS:
NONE.
RETURN VALUE:
int = member ID.

save() v5

Updates credits tables as set by prefix
PARAMETERS:
NONE.
RETURN VALUE:
VOID.

useCredit(int $amount = 1) v5

Marks $amount of credits as being used.
PARAMETERS:
$amount = int, amount of credits.
RETURN VALUE:
VOID.

__construct(\WMT\MySQL $mysqli, int $memberID) v5

Intializing the connection by setting variables
PARAMETERS:
$mysqli = mysqli object.
$memberID = int, member id.
RETURN VALUE:
VOID

AbstractCredits PHP Variables

$credits v5

int, Credits number, default 0

$memberID v5

Member ID, default value = 0

$mysqli v5

mysqli object

$tablePrefix v5

String, Table prefix, default ""



DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237