![]() |
Infohub JS API
|
Contact information record for a user.
Public Member Functions | |
| constructor (contact=({})) | |
| setFromJSON (contact=({})) | |
| toJSON () | |
| Public Member Functions inherited from cnObject | |
| constructor () | |
| get | className () |
| get | id () |
| get | shortid () |
| get | name () |
| set | name (value) |
| setFromJson (obj_as_json, members=null) | |
| getAsJson (members=null) | |
| dump (prefix='') | |
| toJSON () | |
| getId () | |
| getShortId () | |
| getName () | |
| setName (n) | |
| get (key, defaultValue={}) | |
| get | info () |
| get | properties () |
| getPropertyValue (typeid, defaultValue=null) | |
| setPropertyValue (typeid, value) | |
Static Public Member Functions | |
| static | createFromJSON (contact=({})) |
Static Public Attributes | |
| static | className = "Contact" |
| constructor | ( | contact = ({}) | ) |
|
static |
Create a new contact from saved data.
| {Contact} | [contact={}] - The contact data to create from |
Contact - See Contact class for all available properties | setFromJSON | ( | contact = ({}) | ) |
Fill an existing contact with new data.
| {Contact | } [contact={}] - The contact data to update with |
| toJSON | ( | ) |
Convert the contact info to a plain object.
|
static |