Function __global->actual_add_zone
Definitions
sources/zones2.php
- Add a zone.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$zone | ID_TEXT | No | No | required parameter | N/A | N/A | Name of the zone |
$title | SHORT_TEXT | No | No | required parameter | N/A | N/A | The zone title |
$default_page | ID_TEXT | No | No | home | N/A | N/A | The zones default page |
$header_text | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | The header text |
$theme | ID_TEXT | No | No | default | N/A | N/A | The theme |
$require_session | BINARY | No | No | 0 | N/A | N/A | Whether the zone requires a session for pages to be used |
$uniqify | boolean | No | No | False | N/A | N/A | Whether to force the name as unique, if there's a conflict |
$base_url | string | No | No | Blank (empty string) | N/A | N/A | The base URL (blank: natural) |
Returns
- The name
- Type: ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Add a zone.
*
* @param ID_TEXT $zone Name of the zone
* @param SHORT_TEXT $title The zone title
* @param ID_TEXT $default_page The zones default page
* @param SHORT_TEXT $header_text The header text
* @param ID_TEXT $theme The theme
* @param BINARY $require_session Whether the zone requires a session for pages to be used
* @param boolean $uniqify Whether to force the name as unique, if there's a conflict
* @param string $base_url The base URL (blank: natural)
* @return ID_TEXT The name
*/
function actual_add_zone(string $zone, string $title, string $default_page = 'home', string $header_text = '', string $theme = 'default', int $require_session = 0, bool $uniqify = false, string $base_url = '') : string
* Add a zone.
*
* @param ID_TEXT $zone Name of the zone
* @param SHORT_TEXT $title The zone title
* @param ID_TEXT $default_page The zones default page
* @param SHORT_TEXT $header_text The header text
* @param ID_TEXT $theme The theme
* @param BINARY $require_session Whether the zone requires a session for pages to be used
* @param boolean $uniqify Whether to force the name as unique, if there's a conflict
* @param string $base_url The base URL (blank: natural)
* @return ID_TEXT The name
*/
function actual_add_zone(string $zone, string $title, string $default_page = 'home', string $header_text = '', string $theme = 'default', int $require_session = 0, bool $uniqify = false, string $base_url = '') : string