You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
445 B
PHTML
27 lines
445 B
PHTML
4 years ago
|
<?php
|
||
|
|
||
|
namespace Artmark\Forms;
|
||
|
|
||
|
/**
|
||
|
* Description of Utils
|
||
|
*
|
||
|
* @author Andrey Pokidov <pokidov@e-traffic.ru>
|
||
|
*/
|
||
|
class Utils
|
||
|
{
|
||
|
public static function isEmptyString($value)
|
||
|
{
|
||
|
return $value === '';
|
||
|
}
|
||
|
|
||
|
public static function isNonEmptyString($value)
|
||
|
{
|
||
|
return is_string($value) && $value !== '';
|
||
|
}
|
||
|
|
||
|
public static function cleanString($value)
|
||
|
{
|
||
|
return trim(strval($value));
|
||
|
}
|
||
|
}
|