Function Tempcode->bind
Definitions
sources/tempcode.php
- Bind the parameter bits, or recursively bind children (doesn't change self, returns a bound Tempcode object).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$parameters | array | Yes | No | required parameter | N/A | N/A | Map of parameters to bind parameter bits to |
| $codename | ID_TEXT | No | No | required parameter | N/A | N/A | The codename of the template this Tempcode is from |
Returns
- The new bound Tempcode object
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Bind the parameter bits, or recursively bind children (doesn't change self, returns a bound Tempcode object).
*
* @param array $parameters Map of parameters to bind parameter bits to
* @param ID_TEXT $codename The codename of the template this Tempcode is from
* @return Tempcode The new bound Tempcode object
*/
public function bind(array &$parameters, string $codename) : object
* Bind the parameter bits, or recursively bind children (doesn't change self, returns a bound Tempcode object).
*
* @param array $parameters Map of parameters to bind parameter bits to
* @param ID_TEXT $codename The codename of the template this Tempcode is from
* @return Tempcode The new bound Tempcode object
*/
public function bind(array &$parameters, string $codename) : object
