mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
initial import
This commit is contained in:
17
lib/classes/p4field.class.php
Normal file
17
lib/classes/p4field.class.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user