BaseEventTypeController::setElementComplexAttributesFromData PHP Method

setElementComplexAttributesFromData() protected method

The $data attribute will typically be the $_POST structure, but can be any appropriately structured array The optional $index attribute is the counter for multiple elements of the same type that might exist in source data. The convention for the method name for the element setting is: setComplexAttributes_element_class_name
protected setElementComplexAttributesFromData ( BaseEventTypeElement $element, array $data, integer $index = null )
$element BaseEventTypeElement
$data array
$index integer
    protected function setElementComplexAttributesFromData($element, $data, $index = null)
    {
        $element_method = 'setComplexAttributes_' . Helper::getNSShortname($element);
        if (method_exists($this, $element_method)) {
            $this->{$element_method}($element, $data, $index);
        }
    }
BaseEventTypeController