BaseEventTypeController::getChildElements PHP Method

getChildElements() public method

Get the open child elements for the given ElementType.
public getChildElements ( ElementType $parent_type ) : BaseEventTypeElement[]
$parent_type ElementType
return BaseEventTypeElement[] $open_elements
    public function getChildElements($parent_type)
    {
        $open_child_elements = array();
        if (is_array($this->open_elements)) {
            foreach ($this->open_elements as $open) {
                $et = $open->getElementType();
                if ($et && $et->isChild() && $et->parent_element_type->class_name == $parent_type->class_name) {
                    $open_child_elements[] = $open;
                }
            }
        }
        return $open_child_elements;
    }
BaseEventTypeController