Pines Core includes several functions. Most of these functions are just shortcuts to common methods of the Pines object and system services.
Table 3.9. Core Functions
| Function | Description |
|---|---|
clean_checkbox | Clean the name of a checkbox to use in an HTML form. |
clean_filename | Clean a filename, so it doesn't refer to any parent directories. |
format_content | Shortcut to
$pines->format_content(). |
format_date | Shortcut to
$pines->format_date(). |
format_date_range | Shortcut to
$pines->format_date_range(). |
format_fuzzy_time | Shortcut to
$pines->format_fuzzy_time(). |
format_phone | Shortcut to
$pines->format_phone(). |
gatekeeper | Shortcut to
$pines->user_manager->gatekeeper(). If no
user manager is installed, gatekeeper
returns true. |
is_clean_filename | Check whether a filename refers to any parent directories. |
pines_action | Shortcut to $pines->action(). |
pines_depend | Shortcut to
$pines->depend->check(). |
pines_error | Shortcut to
$pines->page->error(). |
pines_log | Shortcut to
$pines->log_manager->log(). If no log
manager is installed, pines_log returns
true. |
pines_notice | Shortcut to
$pines->page->notice(). |
pines_redirect | Shortcut to
$pines->redirect(). |
pines_session | Shortcut to
$pines->session(). |
pines_url | Shortcut to
$pines->template->url(). If there is no
current template, pines_url returns
null. |
punt_user | Shortcut to
$pines->user_manager->punt_user(). If no
user manager is installed punt_user
redirects the user to the homepage. |