ModelEvent.php 546 Bytes
Newer Older
Qiang Xue committed
1 2 3
<?php
/**
 * @link http://www.yiiframework.com/
Qiang Xue committed
4
 * @copyright Copyright (c) 2008 Yii Software LLC
Qiang Xue committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * @license http://www.yiiframework.com/license/
 */

namespace yii\base;

/**
 * ModelEvent class.
 *
 * ModelEvent represents the parameter needed by model events.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class ModelEvent extends Event
{
	/**
	 * @var boolean whether the model is in valid status. Defaults to true.
Qiang Xue committed
22
	 * A model is in valid status if it passes validations or certain checks.
Qiang Xue committed
23 24 25
	 */
	public $isValid = true;
}