This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnapp/classes/lnApp/Valid.php

26 lines
624 B
PHP

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class extends Kohana's Valid
*
* @package lnApp
* @category Modifications
* @author Deon George
* @copyright (c) 2010 Deon George
* @license http://dev.leenooks.net/license.html
*/
abstract class lnApp_Valid extends Kohana_Valid {
/**
* Checks that a value is not equal to another list of values
*
* @param string $value value
* @param array $list List of Values that shouldnt equal
* @return boolean
*/
public static function not_equal($value, array $list) {
return ! in_array($value,$list);
}
}
?>