Members
(constant) time
Handle time basic functions
Methods
arrayRemoveByID(array, id)
Remove an element by id from an array
Parameters:
Name | Type | Description |
---|---|---|
array |
array | |
id |
string |
Returns:
array
arrayRemoveByKEY(array, key)
Remove an element by key from an array
Parameters:
Name | Type | Description |
---|---|---|
array |
array | |
key |
string |
Returns:
array
arrayToObject(object)
Object to array scheme RSA-YCORE-ARRAYPROTO.2
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
Returns:
array
arrayToTree(array, id, parentId, children) → {array}
Convert an array to a tree-structured array.
Parameters:
Name | Type | Description |
---|---|---|
array |
array | The Array need to Converted. |
id |
string | The alias of the unique ID of the object in the array. |
parentId |
string | The alias of the parent ID of the object in the array. |
children |
string | The alias of children of the object in the array. |
Returns:
Return a tree-structured array.
- Type
- array
booleanFix(e)
Global fix for convert '1, 0' to string boolean 'true, false'
Parameters:
Name | Type | Description |
---|---|---|
e |
int | Numeric boolean reference |
Returns:
bool
downloadEncodedURI(payload)
Generate a download with encoded uri
Parameters:
Name | Type | Description |
---|---|---|
payload |
object | Generation Data |
objectLast(array)
Return the last object from array
Parameters:
Name | Type | Description |
---|---|---|
array |
array |
Returns:
object
objectRemoveByID(object, id)
Remove an element by id from an object array
Parameters:
Name | Type | Description |
---|---|---|
object |
object | |
id |
string |
Returns:
array
objectRemoveByKEY(object, key)
Remove an element by key from an object array
Parameters:
Name | Type | Description |
---|---|---|
object |
object | |
key |
string |
Returns:
array
objectToArray(object)
Object to array scheme RSA-YCORE-ARRAYPROTO.2
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
Returns:
array
queryAncestors(array, current, parentId, id) → {array}
In an array of objects, specify an object that traverses the objects whose parent ID matches.
Parameters:
Name | Type | Description |
---|---|---|
array |
array | The Array need to Converted. |
current |
string | Specify the object that needs to be queried. |
parentId |
string | The alias of the parent ID of the object in the array. |
id |
string | The alias of the unique ID of the object in the array. |
Returns:
Return a key array.
- Type
- array
queryArray(array, key, value) → {object|undefined}
Query objects that specify keys and values in an array where all values are objects.
Parameters:
Name | Type | Description |
---|---|---|
array |
array | An array where all values are objects, like [{key:1},{key:2}]. |
key |
string | The key of the object that needs to be queried. |
value |
string | The value of the object that needs to be queried. |
Returns:
Return frist object when query success.
- Type
- object | undefined
queryLayout(layouts, pathname) → {string}
Query which layout should be used for the current path based on the configuration.
Parameters:
Name | Type | Description |
---|---|---|
layouts |
layouts | Layout configuration. |
pathname |
pathname | Path name to be queried. |
Returns:
Return frist object when query success.
- Type
- string
queryPathKeys(array, current, parentId, id) → {array}
In an array object, traverse all parent IDs based on the value of an object.
Parameters:
Name | Type | Description |
---|---|---|
array |
array | The Array need to Converted. |
current |
string | Specify the value of the object that needs to be queried. |
parentId |
string | The alias of the parent ID of the object in the array. |
id |
string | The alias of the unique ID of the object in the array. |
Returns:
Return a key array.
- Type
- array
requestFullscreen()
Request FullScreen mode