Returns an attribute object referenced by supplied id.
Parameters:
API Tags:
Constructor.
Populates the object if $oData is supplied.
array('name' => 'dateEaten', 'typeId' => SGL_CONTENT_ATTR_TYPE_DATE)))
array('name' => 'dishName', 'typeId' => SGL_CONTENT_ATTR_TYPE_TEXT)))
array('name' => 'overallRating', 'typeId' => SGL_CONTENT_ATTR_TYPE_FLOAT)))
Parameters:
API Tags:
mixed changeType(
integer
$newTypeId
)
|
|
Modifies the attributes type.
// changing an attribute's type
// changing an attribute's value
$bar->value =
'new value';
Parameters:
API Tags:
| Return: | true of PEAR error |
| Access: | public |
Deletes the current attribute instance.
API Tags:
Returns value property of SGL_Attribute.
API Tags:
Returns attribute list params.
if ($attr->getType() ==
SGL_CONTENT_ATTR_TYPE_RADIO) {
}
API Tags:
Returns an integer representing the type id of the attribute.
Types are represented by constants.
API Tags:
| See: | CmsDAO::_initialiseAttribTypeConstants() |
| Access: | public |
mixed rename(
string
$newName
)
|
|
Changes the name property of SGL_Attribute.
Parameters:
API Tags:
| Return: | true of PEAR error |
| Access: | public |
Saves the current attribute instance.
$bar->value =
'new value';
API Tags:
void set(
string
$value
)
|
|
Sets value property for SGL_Attribute.
Parameters:
API Tags:
array _getParams(
array
$aAttributeParams
)
|
|
Enter description here...
Parameters:
API Tags:
Serializes attribute params for storage.
API Tags: