class DatabaseObject - nsc-de/js-database GitHub Wiki
fields | functions |
---|---|
#data | #set() |
#length | #setDefault() |
#setDefaults() | |
#get() | |
#getNormal() | |
#update() | |
#contains() |
(get & set)
The data of the DatabaseObject
(get)
Returns the size of the DatabaseObject
Sets a value from the DatabaseObject
parameters
key the path to apply the value to
value the value to apply to the given path
returns the DatabaseArray itself, so you can chain operations like that
Sets a default value from the DatabaseObject
parameters
key the path to apply the value to
value the value to apply to the given path
returns the DatabaseArray itself, so you can chain operations like that
Sets default values for the DatabaseObject
parameters
defaults an object containing all the default values
returns the DatabaseArray itself, so you can chain operations like that
Gets a value from the DatabaseObject
parameters
key the path to apply the value to
returns the value of the key
Gets a value from the DatabaseObject normalizes it
parameters
key the path to apply the value to
returns the normalized value of the key
Upates a value from the DatabaseObject
parameters
key the path to apply the value to
update the funciton to update the value
returns the DatabaseArray itself, so you can chain operations like that
Checks if the DatabaseObject contains a value
parameters
key the path to apply the value to
returns does the array contains the value