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

PagePassword



Database Table: pagepasswords
Extends: AbstractAssign


PagePassword PHP Methods

add() v5

Assigns a record using $assignArray protected array, the array has field title as the key and field value as array value.
PARAMETERS:
NONE.
RETURN VALUE:
VOID

checkCanAssign() v5

Checks if the record can be assigned.
PARAMETERS:
NONE.
RETURN VALUE:
VOID

delete() v5

Deletes a record.
PARAMETERS:
None.
RETURN VALUE:
VOID.

deleteAll() v5

Deletes all loaded records.
PARAMETERS:
None.
RETURN VALUE:
VOID.

getContent(string $pagePassProtectTRHTML, \WMT\SQL\Contact\ContactGroups $contactGroups) v5

Converts tilde codes for password protect settings page
PARAMETERS:
$pagePassProtectTRHTML = string, page HTML which contains the tilde codes.
$contactGroups = object, contact groups object.
RETURN VALUE:
String = HTML code after converting the tilde codes.
converted tilde codes are
~page~, ~contactgroup~, ~newcontactgroup~, ~passcontactgroup~", ~passaftercontactgroup~, ~passsendmessage~

getCount() v5

Gets total records count.
PARAMETERS:
None.
RETURN VALUE:
int = total count.

getTable(string $trHTML) v5

Converts assign tilde codes in $trHTML.
PARAMETERS:
$trHTML = string, HTML content containing assign tilde codes.
RETURN VALUE:
String = the converted HTML content.

hasAssignment() v5

Checks if a record has an assignment set.
PARAMETERS:
NONE.
RETURN VALUE:
Bool = true if the record already assigned, false otherwise.

__construct(\WMT\MySQL $mysqli, $page, $contactGroup, int $newContactGroup = 0, bool $sendMessage = false, int $memberID = 0) v5

Intialize the connection to AbstractAssign and set the variable values
PARAMETERS:
$mysqli = mysqli object.
$page = object, page (WMT\SQL\Page\Page), or int, page id.
$contactGroup = object, contact group (WMT\SQL\Contact\ContactGroup), or int, contact group id.
$newContactGroup = object, contact group (WMT\SQL\Contact\ContactGroup), or int, contact group id.
$sendMessage = bool, change loginsendmessage additional field value
$memberID = int, member id.
RETURN VALUE:
VOID.

PagePassword PHP Variables

$addtlFields v5

Associative array has field title as array key and field value as array value for the additional fields. Default value is empty array; array().

$assignArray v5

Associative array has field title as array key and field value as array value. Default value is empty array; array().

$databaseName v5

String, the database table

$myMemberID v5

int, Member id

$searchQAdd v5

string, custom search query

$skipZero v5

bool, default value=false

$titleColumn v5

String, column title

$totalCount v5

int, number of assigned elements. default -1


Columns in the pagepasswords Database Table:

id    contactgroup    newcontactgroup    loginsendmessage    page    

Code Example




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


Reseller: WMT
|
Login
(502) 225-3237