import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -1,5 +1,4 @@
<?php
/**
* Zend Framework
*
@ -17,16 +16,14 @@
* @package Zend_Validate
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: NotEmpty.php 10356 2008-07-24 15:14:56Z matthew $
* @version $Id: NotEmpty.php 13226 2008-12-14 11:53:29Z thomas $
*/
/**
* @see Zend_Validate_Abstract
*/
require_once 'Zend/Validate/Abstract.php';
/**
* @category Zend
* @package Zend_Validate
@ -35,14 +32,13 @@ require_once 'Zend/Validate/Abstract.php';
*/
class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
{
const IS_EMPTY = 'isEmpty';
/**
* @var array
*/
protected $_messageTemplates = array(
self::IS_EMPTY => "Value is empty, but a non-empty value is required"
self::IS_EMPTY => "Value is required and can't be empty"
);
/**
@ -58,7 +54,7 @@ class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
$this->_setValue((string) $value);
if (is_string($value)
&& (('' === $value)
&& (('' === $value)
|| preg_match('/^\s+$/s', $value))
) {
$this->_error();