Get the ElementType for this element.
public getElementType ( ) : ElementType | ||
return | ElementType |
/** * @param BaseEventTypeElement $element */ public function findAllByElement($element) { $element_type = $element->getElementType(); return $this->findAll('element_type_id = :element_type_id', array(':element_type_id' => $element_type->id)); }
/** * Render the optional child elements for the given parent element type * * @param BaseEventTypeElement $parent_element * @param string $action * @param BaseCActiveBaseEventTypeCActiveForm $form * @param array $data * @throws Exception */ public function renderChildOptionalElements($parent_element, $action, $form = null, $data = null) { foreach ($this->getChildOptionalElements($parent_element->getElementType()) as $element) { $this->renderOptionalElement($element, $action, $form, $data); } }
/** * Render the optional child elements for the given parent element type. * * @param BaseEventTypeElement $parent_element * @param string $action * @param BaseCActiveBaseEventTypeCActiveForm $form * @param array $data * * @throws Exception */ public function renderChildOptionalElements($parent_element, $action, $form = null, $data = null) { $this->setCurrentSet(); $elements = $this->getChildOptionalElements($parent_element->getElementType()); $this->filterElements($elements); foreach ($elements as $element) { $this->renderOptionalElement($element, $action, $form, $data); } }