Blame view

src/vendor/1.2.5/Phalcon/Mvc/Model/ValidationFailed.php 870 Bytes
1ea3b987   Administrator   maby first commit
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  <?php 
  
  namespace Phalcon\Mvc\Model {
  
  	/**
  	 * Phalcon\Mvc\Model\ValidationFailed
  	 *
  	 * This exception is generated when a model fails to save a record
  	 * Phalcon\Mvc\Model must be set up to have this behavior
  	 */
  	
  	class ValidationFailed extends \Phalcon\Mvc\Model\Exception {
  
  		protected $_model;
  
  		protected $_messages;
  
  		/**
  		 * \Phalcon\Mvc\Model\ValidationFailed constructor
  		 *
  		 * @param \Phalcon\Mvc\Model $model
  		 * @param \Phalcon\Mvc\Model\Message[] $validationMessages
  		 */
  		public function __construct($model, $validationMessages){ }
  
  
  		/**
  		 * Returns the complete group of messages produced in the validation
  		 *
  		 * @return \Phalcon\Mvc\Model\Message[]
  		 */
  		public function getMessages(){ }
  
  
  		/**
  		 * Returns the model that generated the messages
  		 *
  		 * @return \Phalcon\Mvc\Model
  		 */
  		public function getModel(){ }
  
  	}
  }