public function hasPost()
    {
        if (func_num_args() == 0) {
            return !empty($this->post);
        }

        foreach (func_get_args() as $key) {
            if (!$this->hasParam($this->post, $key)) {
                return false;
            }
        }

        return true;
    }
public function hasPost()
    {
        if (func_num_args() == 0) {
            return !empty($this->post);
        }

        foreach (func_get_args() as $key) {
            if (!$this->hasParam($this->post, $key)) {
                return false;
            }
        }

        return true;
    }
public function hasPost ( ) { if ( func_num_args ( ) == 0 ) { return ! empty ( $ this -> post ) ; } foreach ( func_get_args ( ) as $ key ) { if ( ! $ this -> hasParam ( $ this -> post , $ key ) ) { return false ; } } return true ; }
Checks whether post parameter exists or the whole array isn't empty

@param string $key, [...]
@return boolean
Checks whether post parameter exists or the whole array isn t empty