src/Foundation/Ajax.php
protected function initDataPacket($filter, $key)
    {
        if (!array_key_exists($key, $_POST)) {
            $this->errorMessage = $this->config->messages[$key];
            $this->ajax_response_handler();
        }
        $this->dataPacket[$key] = $filter($_POST[$key]);
    }
protected function initDataPacket($filter, $key)
    {
        if (!array_key_exists($key, $_POST)) {
            $this->errorMessage = $this->config->messages[$key];
            $this->ajax_response_handler();
        }
        $this->dataPacket[$key] = $filter($_POST[$key]);
    }
protected function initDataPacket ( $ filter , $ key ) { if ( ! array_key_exists ( $ key , $ _POST ) ) { $ this -> errorMessage = $ this -> config -> messages [ $ key ] ; $ this -> ajax_response_handler ( ) ; } $ this -> dataPacket [ $ key ] = $ filter ( $ _POST [ $ key ] ) ; }
Initialize data packet

@since 3.0.0

@param string $filter
@param string $key

@return null
Initialize data packet