Пример #1
0
 /**
  * @param string $value
  * @param int $stackLevel [optional]
  * @return void
  * @throws \Exception
  */
 public static function assertValueIsIso2($value, $stackLevel = 0)
 {
     self::validateValue(\Df\Zf\Validate\StringT\Iso2::s(), $value, $stackLevel + 1);
 }
Пример #2
0
/**
 * @param mixed $v
 * @return bool
 */
function df_check_iso2($v)
{
    return \Df\Zf\Validate\StringT\Iso2::s()->isValid($v);
}