Contao\Input::findPost PHP 메소드

findPost() 공개 정적인 메소드

Fallback to the session form data if there is no post data
public static findPost ( string $strKey ) : mixed
$strKey string The variable name
리턴 mixed The variable value
    public static function findPost($strKey)
    {
        if (isset($_POST[$strKey])) {
            return $_POST[$strKey];
        }
        if (isset($_SESSION['FORM_DATA'][$strKey])) {
            return $strKey == 'FORM_SUBMIT' ? preg_replace('/^auto_/i', '', $_SESSION['FORM_DATA'][$strKey]) : $_SESSION['FORM_DATA'][$strKey];
        }
        return null;
    }