setAttribute
setAttribute corresponds to a method used to set the attribute of a model object.
setAttribute(
model: ProxyInterface,
attributeName: string,
attributeValue: any
): Promise<boolean>;
- Parameters
-
model: A ProxyInterface representing the model
to modify.
attributeName: A string that is the name of the attribute to
set.
attributeValue: A parameter that is not typed. This parameter
corresponds to the value to be set.
- Return Value
- Returns a Boolean.
getAttribute
getAttribute corresponds to a method used to get the attribute value of a
model object.
getAttribute(
model: ProxyInterface,
attributeName: string
): Promise<any>;
- Parameters
-
model: A ProxyInterface representing the model
from which the attribute is requested.
attributeName: A string that is the name of the attribute to
retrieve.
- Return Value
- Returns the value of the attribute. Its type is unknown before you get it.
getAttributes
getAttributes corresponds to a method used to get the attributes value of
a model object.
getAttributes(
model: ProxyInterface,
attributeNames: string[]
): Promise<any[]>;
- Parameters
-
model: A ProxyInterface representing the model
from which the attributes are requested.
attributeName: A list of strings that correspond to the names
of the attributes to be requested.
- Return Value
- Returns an array containing the values of the attributes. Its type is unknown before
you get it.
getI18nAttribute
getI18nAttribute corresponds to a method used to get the internationalized
value of an attribute of a model object.
getI18nAttribute(
model: ProxyInterface,
attributeName: string
): Promise<string>;
- Parameters
-
model: A ProxyInterface representing the model
from which the attribute is requested.
attributeName: A string that is the name of the attribute to be
retrieved.
- Return Value
- Returns the internationalized value of the attribute.
getI18nAttributes
getI18nAttributes corresponds to a method used to get the
internationalized value of the attributes of a model object.
getI18nAttributes(
model: ProxyInterface,
attributeNames: string[]
): Promise<string[]>;
- Parameters
-
model: A ProxyInterface representing the model
from which the attributes are requested.
attributeNames: A list of strings that are the names of the
attributes to be requested.
- Return Value
- Returns an array containing the internationalized value of the attributes.
getAttributeNames
getAttributeNames corresponds to a method used to get the attribute names
of a model object.
getAttributesName(
model: ProxyInterface
): Promise<string[]>;
- Parameters
model: A ProxyInterface representing the model
from which the attribute names are requested.
- Return Value
- Returns an array of strings, which are the names of the attributes.