Blame view

src/vendor/1.2.5/Phalcon/Mvc/Model/Transaction/ManagerInterface.php 1.53 KB
ef60cd4d   Administrator   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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  <?php 
  
  namespace Phalcon\Mvc\Model\Transaction {
  
  	/**
  	 * Phalcon\Mvc\Model\Transaction\ManagerInterface initializer
  	 */
  	
  	interface ManagerInterface {
  
  		/**
  		 * \Phalcon\Mvc\Model\Transaction\Manager
  		 *
  		 * @param \Phalcon\DiInterface $dependencyInjector
  		 */
  		public function __construct($dependencyInjector=null);
  
  
  		/**
  		 * Checks whether manager has an active transaction
  		 *
  		 * @return boolean
  		 */
  		public function has();
  
  
  		/**
  		 * Returns a new \Phalcon\Mvc\Model\Transaction or an already created once
  		 *
  		 * @param boolean $autoBegin
  		 * @return \Phalcon\Mvc\Model\TransactionInterface
  		 */
  		public function get($autoBegin=null);
  
  
  		/**
  		 * Rollbacks active transactions within the manager
  		 *
  		 */
  		public function rollbackPendent();
  
  
  		/**
  		 * Commmits active transactions within the manager
  		 *
  		 */
  		public function commit();
  
  
  		/**
  		 * Rollbacks active transactions within the manager
  		 * Collect will remove transaction from the manager
  		 *
  		 * @param boolean $collect
  		 */
  		public function rollback($collect=null);
  
  
  		/**
  		 * Notifies the manager about a rollbacked transaction
  		 *
  		 * @param \Phalcon\Mvc\Model\TransactionInterface $transaction
  		 */
  		public function notifyRollback($transaction);
  
  
  		/**
  		 * Notifies the manager about a commited transaction
  		 *
  		 * @param \Phalcon\Mvc\Model\TransactionInterface $transaction
  		 */
  		public function notifyCommit($transaction);
  
  
  		/**
  		 * Remove all the transactions from the manager
  		 *
  		 */
  		public function collectTransactions();
  
  	}
  }