Function Database_Static_xml->_guid
Definitions
sources/database/xml.php
- Generate a GUID for a record, preferably from the key, but doesn't have to be.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$schema | ?array | No | No | Null | N/A | N/A | The schema (null: don't have/use) |
$record | ?array | No | No | Null | N/A | N/A | The record (null: don't have/use) |
Returns
- The GUID
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Generate a GUID for a record, preferably from the key, but doesn't have to be.
*
* @param ?array $schema The schema (null: don't have/use)
* @param ?array $record The record (null: don't have/use)
* @return string The GUID
*/
protected function _guid(?array $schema = null, ?array $record = null) : string
* Generate a GUID for a record, preferably from the key, but doesn't have to be.
*
* @param ?array $schema The schema (null: don't have/use)
* @param ?array $record The record (null: don't have/use)
* @return string The GUID
*/
protected function _guid(?array $schema = null, ?array $record = null) : string