src/Core/Project.php
protected function getAllowedPostedAttributes() {
        $arrAddAttributes = [];
        $arrAllowedAttributes = [];
        foreach ($this->config['attributes'] as $attr) {
            $arrAllowedAttributes[] = $attr['name'];
        }
        
        foreach ($_POST as $key => $val) {
            if (!in_array($key, $arrAllowedAttributes)) {
                continue;
            }
            $arrAddAttributes[$key] = $val;
        }
        return $arrAddAttributes;
    }
protected function getAllowedPostedAttributes() {
        $arrAddAttributes = [];
        $arrAllowedAttributes = [];
        foreach ($this->config['attributes'] as $attr) {
            $arrAllowedAttributes[] = $attr['name'];
        }
        
        foreach ($_POST as $key => $val) {
            if (!in_array($key, $arrAllowedAttributes)) {
                continue;
            }
            $arrAddAttributes[$key] = $val;
        }
        return $arrAddAttributes;
    }
protected function getAllowedPostedAttributes ( ) { $ arrAddAttributes = [ ] ; $ arrAllowedAttributes = [ ] ; foreach ( $ this -> config [ 'attributes' ] as $ attr ) { $ arrAllowedAttributes [ ] = $ attr [ 'name' ] ; } foreach ( $ _POST as $ key => $ val ) { if ( ! in_array ( $ key , $ arrAllowedAttributes ) ) { continue ; } $ arrAddAttributes [ $ key ] = $ val ; } return $ arrAddAttributes ; }
Catches all POST attributes that were sent from the webform, providing
they are defined in the JSON Config

@return array
Catches all POST attributes that were sent from the webform providing they are defined in the JSON Config