![]() |
IP.Board
3.3.0
|
Public Member Functions | |
| getLinks () | |
| init () | |
| runCustomEvent ($currentArea) | |
| saveForm ($current_area) | |
| showForm ($current_area, $errors=array()) | |
Data Fields | |
| $defaultAreaCode = 'myfiles' | |
| $hide_form_and_save_button = true | |
| $ok_message = '' | |
| $tab_name = '' | |
| $uploadFormMax = 0 | |
| $version = 32 | |
| getLinks | ( | ) |
Return links for this tab You may return an empty array or FALSE to not have any links show in the tab.
The links must have 'area=xxxxx'. The rest of the URL is added automatically. 'area' can only be a-z A-Z 0-9 - _
public
Implements interface_usercp.
| init | ( | ) |
| runCustomEvent | ( | $ | currentArea | ) |
Run custom event
If you pass a 'do' in the URL / post form that is not either: save / save_form or show / show_form then this function is loaded instead. You can return a HTML chunk to be used in the UserCP (the tabs and footer are auto loaded) or redirect to a link.
If you are returning HTML, you can use $this->hide_form_and_save_button = 1; to remove the form and save button that is automatically placed there.
public
| string | Current 'area' variable (area=xxxx from the URL) |
Implements interface_usercp.
| saveForm | ( | $ | current_area | ) |
UserCP Form Check
public
| string | Current area as defined by 'get_links' |
Implements interface_usercp.
| showForm | ( | $ | current_area, |
| $ | errors = array() |
||
| ) |
UserCP Form Show
public
| string | Current area as defined by 'get_links' |
| array | Errors |
Implements interface_usercp.