initial import

This commit is contained in:
Alchemy
2011-02-16 16:09:48 +01:00
parent 399a584b6f
commit 339d23c06d
5539 changed files with 2028637 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
<?php
class p4field
{
public static function isyes($v)
{
$v = mb_strtolower(trim((string)$v));
return($v=='1' || $v=='y' || $v=='yes' || $v=='o' || $v=='oui' || $v=='on' || $v=='true');
}
public static function isno($v)
{
$v = mb_strtolower(trim((string)$v));
return($v=='0' || $v=='n' || $v=='no' || $v=='non' || $v='off' || $v=='false');
}
}