Function __global->div
Definitions
sources/templates.php
- Get the Tempcode for a div. Similar to paragraph, but may contain more formatting (such as <br />'s).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $tempcode | Tempcode | No | No | required parameter | N/A | N/A | The Tempcode to put into a div, provided in HTML format (string or Tempcode) |
| $guid | string | No | No | Blank (empty string) | N/A | N/A | GUID for call |
| $class | ?string | No | No | Null | N/A | N/A | CSS classname (null: none) |
Returns
- The generated div with contents
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the Tempcode for a div. Similar to paragraph, but may contain more formatting (such as <br />'s).
*
* @param Tempcode $tempcode The Tempcode to put into a div, provided in HTML format (string or Tempcode)
* @param string $guid GUID for call
* @param ?string $class CSS classname (null: none)
* @return Tempcode The generated div with contents
*/
function div(object $tempcode, string $guid = '', ?string $class = null) : object
* Get the Tempcode for a div. Similar to paragraph, but may contain more formatting (such as <br />'s).
*
* @param Tempcode $tempcode The Tempcode to put into a div, provided in HTML format (string or Tempcode)
* @param string $guid GUID for call
* @param ?string $class CSS classname (null: none)
* @return Tempcode The generated div with contents
*/
function div(object $tempcode, string $guid = '', ?string $class = null) : object

