Base

Summary
Base
MQA.BaseGeneric object to be used as a base to create more complex objects.
Functions
setValueSets the specified key to the specified value.
getValueReturns the value if it exists, undefined otherwise.
setValuesSets multiple properties for the object.
overrideRemoves the default behavior for the specified property.

MQA.Base

Generic object to be used as a base to create more complex objects.  This object is not instantiated directly.

Summary
Functions
setValueSets the specified key to the specified value.
getValueReturns the value if it exists, undefined otherwise.
setValuesSets multiple properties for the object.
overrideRemoves the default behavior for the specified property.

Functions

setValue

Sets the specified key to the specified value.

Parameters

pcKey(string) The property to set.
pcValue(mixed) The value to set the property to.

Returns

Returns true if the key exists and is set successfully, otherwise false.

See Also

getValue, setValues

getValue

Returns the value if it exists, undefined otherwise.

Parameters

pcKey(string) The property name of the value to get.

Returns

The value of the specified property name.  If the specified property does not exist, ‘undefined’ is returned.

See Also

setValue, setValues

setValues

Sets multiple properties for the object.

Parameters

pcValues(JSON Object) The key:value pairs to set where “key” is the property name and “value” is the value to set.

Returns

Returns the number of objects set successfully

override

Removes the default behavior for the specified property.  Used when creating objects derived from MQA.Base where the default behavior is not preferable.

Parameters

Takes a string or an array of strings as a parameter.

Returns

n/a

Returns the value if it exists, undefined otherwise.
Sets multiple properties for the object.
Sets the specified key to the specified value.
Close