Function Tempcode->from_assembly
Definitions
sources/tempcode.php
- The opposite of to_assembly - it decodes a Tempcode storage representation and turns it into a proper Tempcode object.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$raw_data | string | Yes | No | required parameter | N/A | N/A | The assembled Tempcode |
| $allow_failure | boolean | No | No | False | N/A | N/A | Return error code on failure, rather than exiting |
Returns
- Success status (it can fail, if the compiled cache file is corrupt)
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* The opposite of to_assembly - it decodes a Tempcode storage representation and turns it into a proper Tempcode object.
*
* @param string $raw_data The assembled Tempcode
* @param boolean $allow_failure Return error code on failure, rather than exiting
* @return boolean Success status (it can fail, if the compiled cache file is corrupt)
*/
public function from_assembly(string &$raw_data, bool $allow_failure = false) : bool
* The opposite of to_assembly - it decodes a Tempcode storage representation and turns it into a proper Tempcode object.
*
* @param string $raw_data The assembled Tempcode
* @param boolean $allow_failure Return error code on failure, rather than exiting
* @return boolean Success status (it can fail, if the compiled cache file is corrupt)
*/
public function from_assembly(string &$raw_data, bool $allow_failure = false) : bool

