ocPortal Developer's Guide: Point-store
» Return to ContentsThe point-store ties in with the points system. Via the use of hooks, new point-store items may be integrated into the point-store system.
sources/pointstore.php
Global_functions_pointstore.php
Function summary
| void | pointstore_handle_error_taken (ID_TEXT prefix, ID_TEXT suffix) |
| tempcode | get_mail_domains (ID_TEXT type, integer points_left) |
| void | pointstore_handle_error_already_has (ID_TEXT type) |
void pointstore_handle_error_taken(ID_TEXT prefix, ID_TEXT suffix)
Check to see if the specified e-mail address has already been purchased. If so, spawn an error message.
Parameters…
| Name | prefix |
|---|---|
| Description | The prefix (mailbox name) |
| Type | ID_TEXT |
| Name | suffix |
|---|---|
| Description | The suffix (domain name) |
| Type | ID_TEXT |
(No return value)
tempcode get_mail_domains(ID_TEXT type, integer points_left)
Get a tempcode list of the available mail domains.
Parameters…
| Name | type |
|---|---|
| Description | The type of mail domain |
| Type | ID_TEXT |
| Values restricted to | pop3 forw |
| Name | points_left |
|---|---|
| Description | Description |
| Type | integer |
Returns…
| Description | The tempcode list of available domains |
|---|---|
| Type | tempcode |
void pointstore_handle_error_already_has(ID_TEXT type)
Check to see if the member already has an account of this type. If so, an error message is shown, as you can only own of each type.
Parameters…
| Name | type |
|---|---|
| Description | The type of mail domain |
| Type | ID_TEXT |
| Values restricted to | pop3 forw |
(No return value)




0 reviews: Unrated (average)
There have been no comments yet