mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 18:14:35 +00:00

Conflicts: bower.json composer.lock lib/Alchemy/Phrasea/Application/Api.php lib/Alchemy/Phrasea/Controller/Prod/Lazaret.php lib/Alchemy/Phrasea/SearchEngine/Phrasea/PhraseaEngineQueryParser.php lib/classes/API/V1/adapter.php lib/classes/Feed/Adapter.php lib/classes/User/Query.php lib/classes/patch/320alpha4b.php templates/web/admin/statusbit.html.twig templates/web/prod/actions/Tools/index.html.twig templates/web/prod/index.html.twig templates/web/prod/upload/lazaret.html.twig templates/web/prod/upload/upload-flash.html.twig www/scripts/apps/login/home/config.js www/skins/prod/000000/prodcolor.css www/skins/prod/959595/prodcolor.css
29 lines
617 B
PHP
29 lines
617 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2014 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
class p4field
|
|
{
|
|
|
|
public static function isyes($v)
|
|
{
|
|
$v = mb_strtolower(trim($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($v));
|
|
|
|
return($v == '0' || $v == 'n' || $v == 'no' || $v == 'non' || $v == 'off' || $v == 'false');
|
|
}
|
|
}
|