function PropertiesBaseTestCase::getAttributeFormName in Dynamic properties 7
Returns the form name of a attribute in a specific category.
Parameters
$category: Category object.
$attribute: Attribut object.
Return value
Name of the form field name.
File
- ./
properties.test, line 206 - Contains tests for the properties.module
Class
- PropertiesBaseTestCase
- Base class for properties tests, provides helper methods.
Code
function getAttributeFormName($category, $attribute, $fieldname = 'value') {
return $this->field_prefix . '[listing][' . $category->name . '][properties][' . $attribute->name . '][' . $fieldname . ']';
}