src/ExtendedValidator.php
private function getIgnore(&$parameters) {
        $lastParam = end($parameters);
        $lastParam = array_map('trim', explode('=', $lastParam));

        // An ignore_id is only specified if the last param starts with a
        // number greater than 1 (a valid id in the database)
        if (!preg_match('/^[1-9][0-9]*$/', $lastParam[0])) {
            return array(null, null);
        }

        $ignoreId = $lastParam[0];
        $ignoreColumn = (sizeof($lastParam) > 1) ? end($lastParam) : null;

        // Shave of the ignore_id from the array for later processing
        array_pop($parameters);

        return array($ignoreId, $ignoreColumn);
    }
private function getIgnore(&$parameters) {
        $lastParam = end($parameters);
        $lastParam = array_map('trim', explode('=', $lastParam));

        // An ignore_id is only specified if the last param starts with a
        // number greater than 1 (a valid id in the database)
        if (!preg_match('/^[1-9][0-9]*$/', $lastParam[0])) {
            return array(null, null);
        }

        $ignoreId = $lastParam[0];
        $ignoreColumn = (sizeof($lastParam) > 1) ? end($lastParam) : null;

        // Shave of the ignore_id from the array for later processing
        array_pop($parameters);

        return array($ignoreId, $ignoreColumn);
    }
private function getIgnore ( & $ parameters ) { $ lastParam = end ( $ parameters ) ; $ lastParam = array_map ( 'trim' , explode ( '=' , $ lastParam ) ) ; // An ignore_id is only specified if the last param starts with a // number greater than 1 (a valid id in the database) if ( ! preg_match ( '/^[1-9][0-9]*$/' , $ lastParam [ 0 ] ) ) { return array ( null , null ) ; } $ ignoreId = $ lastParam [ 0 ] ; $ ignoreColumn = ( sizeof ( $ lastParam ) > 1 ) ? end ( $ lastParam ) : null ; // Shave of the ignore_id from the array for later processing array_pop ( $ parameters ) ; return array ( $ ignoreId , $ ignoreColumn ) ; }
Returns an array with value and column name for an optional ignore.
Shaves of the ignore_id from the end of the array, if there is one.

@param  array $parameters
@return array [$ignoreId, $ignoreColumn]
Returns an array with value and column name for an optional ignore . Shaves of the ignore_id from the end of the array if there is one .