CModelEvent.php 1013 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * CModelEvent class file.
  4. *
  5. * @author Qiang Xue <qiang.xue@gmail.com>
  6. * @link http://www.yiiframework.com/
  7. * @copyright 2008-2013 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. /**
  11. * CModelEvent class.
  12. *
  13. * CModelEvent represents the event parameters needed by events raised by a model.
  14. *
  15. * @author Qiang Xue <qiang.xue@gmail.com>
  16. * @package system.base
  17. * @since 1.0
  18. */
  19. class CModelEvent extends CEvent
  20. {
  21. /**
  22. * @var boolean whether the model is in valid status and should continue its normal method execution cycles. Defaults to true.
  23. * For example, when this event is raised in a {@link CFormModel} object that is executing {@link CModel::beforeValidate},
  24. * if this property is set false by the event handler, the {@link CModel::validate} method will quit after handling this event.
  25. * If true, the normal execution cycles will continue, including performing the real validations and calling
  26. * {@link CModel::afterValidate}.
  27. */
  28. public $isValid=true;
  29. }