public static function addWarning($code, $level = 1, $args = null)
    {
        if ($args === null) {
            // Callers may use null as well.
            $args = array();
        };
        if (!is_array($args)) {
            $args = array($args);
        };
        switch ($level) {
        case 0:
        case 1:
        case 2:
        case 3:
            break;
        default:
            $level = 1;
        };
        self::$_req['warnings'][] = array($level, $code, $args);
    }
public static function addWarning($code, $level = 1, $args = null)
    {
        if ($args === null) {
            // Callers may use null as well.
            $args = array();
        };
        if (!is_array($args)) {
            $args = array($args);
        };
        switch ($level) {
        case 0:
        case 1:
        case 2:
        case 3:
            break;
        default:
            $level = 1;
        };
        self::$_req['warnings'][] = array($level, $code, $args);
    }
public static function addWarning ( $ code , $ level = 1 , $ args = null ) { if ( $ args === null ) { // Callers may use null as well. $ args = array ( ) ; } ; if ( ! is_array ( $ args ) ) { $ args = array ( $ args ) ; } ; switch ( $ level ) { case 0 : case 1 : case 2 : case 3 : break ; default : $ level = 1 ; } ; self :: $ _req [ 'warnings' ] [ ] = array ( $ level , $ code , $ args ) ; }
Add warning to the list

Severity level should be one of:

3: success
2: info
1: warning
0: fatal

Any other value will be replaced with 1.

If $args is not an array, it will be used directly as a single argument
for convenience.

@param string     $code  Warning code string
@param int|null   $level Lowest=worst severity level
@param mixed|null $args  Optional list of arguments

@return null
Add warning to the list