ValidationEvent.php 680 Bytes
Newer Older
w  
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
/**
 * ValidationEvent class file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008-2012 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\base;

/**
 * ValidationEvent class.
 *
 * ValidationEvent represents the parameter needed by model validation events.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class ValidationEvent extends Event
{
	/**
	 * @var boolean whether the model passes the validation by the event handler.
	 * Defaults to true. If it is set false, the [[Model::validate|model validation]] will be cancelled.
	 * @see Model::onBeforeValidate
	 */
	public $isValid = true;
}