Solar_Form::setElelementProperty
By: a guest | Jun 10th, 2010 | Syntax:
PHP | Size: 0.66 KB | Hits: 133 | Expires: Never
/**
*
* Sets the property of one element.
*
* @param string $name The element name.
*
* @param string $property_name The element property name
*
* @param string $property_value The element property value
*
* @param string $array Rename the element as a key in this array.
*
* @return void
*
*/
public function setElementProperty($name, $property_name, $property_value, $array = null)
{
$name = $this->_prepareName($name, $array);
if (! empty($this->elements[$name])) {
$this->elements[$name][$property_name] = $property_value;
}
}