@param array $inputData

@throws ElementNotFoundException
964429
public function submit(array $inputData = [])
    {
        $this->validated = false;
        $this->isSubmitted = true;
        $this->isValid = true;

        /** @var ElementInterface $element */
        foreach ($this->elements() as $name => $element) {
            if ($element->isDisabled()) {
                continue;
            }
            $value = $inputData[$name] ?? '';
            $this->rawData[$name] = $value;
            $value = $this->filter($name, $value);
            $this->data[$name] = $value;
            $element->withValue($value);

            // only validate elements which are not disabled.
            if (! $this->validate($name, $element->value())) {
                $this->isValid = false;
            }
        }
    }
445245
protected function build_input($data, array $fields = [] ){
        return parent::build_input($data, $fields).$this->length_helper($data);
    }
224963
private function render($viewName, $inputData)
    {
        $module = $this->aModuleConfig['model'];
        $moduleConfig = $this->getModuleObject($module, 'classname');

        $chainConfig = $moduleConfig->getMapperChains();
        $mappers = array();
        if (isset($chainConfig[$this->aModuleConfig['view']])) {
            foreach ($chainConfig[$this->aModuleConfig['view']] as $mapper) {
                $mappers[] = $this->mapperLoader->getMapper($mapper);
            }
        }

        $mapperChains = $moduleConfig->getMapperChains();

        $this->viewRenderer->AddSourceObjectsFromArray($inputData);
        foreach ($mapperChains as $name => $chainMappers) {
            $this->viewRenderer->addMapperChain($name, $chainMappers);
        }

        $this->viewRenderer->AddMappers($mappers);

        return $this->viewRenderer->Render($viewName);
    }
807702
public void setInputDataConfig(java.util.Collection<Channel> inputDataConfig) {
        if (inputDataConfig == null) {
            this.inputDataConfig = null;
            return;
        }

        this.inputDataConfig = new java.util.ArrayList<Channel>(inputDataConfig);
    }
1335999
private function prepareElements(array $elementsData, $acceptScalar = true)
    {
        $elements = [];
        foreach ($elementsData as $key => $data) {
            if (true === $acceptScalar && is_scalar($data)) {
                $elements[$key] = $data;
                continue;
            }

            if (!is_array($data)) {
                continue;
            }

            if (isset($data['type']) && isset($data['uid'])) {
                if (null !== $element = $this->findOneByTypeAndUid($data['type'], $data['uid'])) {
                    $elements[$key] = $element;
                }

                continue;
            }

            $elements[$key] = [];
            foreach ($data as $row) {
                if (
                    isset($row['type'])
                    && isset($row['uid'])
                    && null !== $element = $this->findOneByTypeAndUid($row['type'], $row['uid'])
                ) {
                    $elements[$key][] = $element;
                }
            }
        }

        return $elements;
    }
1314417
public function checkData(array $currentData, array $newData)
    {
        return ($currentData && $newData && $currentData !== $newData)
            ? $this->updateData($newData)
            : $newData;
    }
253685
protected static function addLabel(InputInterface $input, array $data)
    {
        if (!isset($data['label'])) {
            return;
        }
        if (is_string($data['label'])) {
            $input->setLabel($data['label']);
            return;
        }

        $label = new Label('', $data['label']['value']);
        self::populateElement($label, $data['label']);
        $input->setLabel($label);
    }
231609
public function onInput($data)
    {
        //Process data here
        foreach ($this->params as $copy => $original) {
            $data[$copy] = $data[$original];
        }
        $this->next($data);
    }
1309566
protected static function setFilters(InputInterface $input, array $data)
    {
        $hasFilters = isset($data['filters']) && is_array($data['filters']);
        if (!$hasFilters) {
            return;
        }

        foreach ($data['filters'] as $filter) {
            $input->addFilter($filter);
        }
    }
32506
public function addInput($input)
    {
        $inputs = $this->getInputs();
        array_push($inputs, $input);
        $this->setInputs($inputs);
    }
225086
protected function _addInput(array $data, $name = null)
    {
        $this->_inputFilter->add($this->_newInput($data, $name));
    }
26481
protected function onInput($data)
    {
        //Process data here
        foreach ($this->params as $func => $columns) {
            switch ($func) {
            case "upper":
                foreach ($columns as $col) {
                    $data[$col] = strtoupper($data[$col]);
                }
                break;
            case "lower":
                foreach ($columns as $col) {
                    $data[$col] = strtolower($data[$col]);
                }
                break;
            case "first-cap":
                foreach ($columns as $col) {
                    $data[$col] = ucfirst($data[$col]);
                }
                break;
            case "all-cap":
                foreach ($columns as $col) {
                    $data[$col] = ucwords($data[$col]);
                }
                break;
            }
        }
        $this->next($data);
    }
879461
protected function &_NewElement(&$aData)
    {
        if (!empty($aData['class'])) {
            $sClassName = $aData['class'];
            $oElement = new $sClassName();
            $oElement->LoadFromRow($aData);

            return $oElement;
        } else {
            return parent::_NewElement($aData);
        }
    }
1333157
public static function allowLtiLinkItem($postdata=false) {
        if ( ! $postdata ) $postdata = LTIX::ltiRawPostArray();
        return parent::allowLtiLinkItem($postdata);
    }
601428
public function init(array $frontendData): void
    {
        $this->_frontendData = Hash::merge(
            $this->_frontendData, $frontendData
        );
        $this->_includeAppController();
        $this->_includeComponents();
    }
446181
public function addInput(Input $input)
    {
        $reflection = new \ReflectionClass($input);

        $method = 'add'.$reflection->getShortName();

        if (method_exists($this, $method)) {
            $this->$method(...array_values($input->getAttributes()));
        }
    }
421236
public function addIncluded(Data $newData)
    {
        $this->included[$newData->getType()][$newData->getId()] = $newData;
    }