public static function itemsList($items, $validator)
    {
        foreach ($items as $item)
        {
            if (!self::$validator($item))
            {
                return false;
            }
        }

        return true;
    }
public static function itemsList($items, $validator)
    {
        foreach ($items as $item)
        {
            if (!self::$validator($item))
            {
                return false;
            }
        }

        return true;
    }
public static function itemsList ( $ items , $ validator ) { foreach ( $ items as $ item ) { if ( ! self :: $ validator ( $ item ) ) { return false ; } } return true ; }
Test for valid itemsList

@param  array    $items
@param  string   $validator  Validator to use agains the list (second, minute, hour)
@return bool
Test for valid itemsList