Changeset 3954
- Timestamp:
- 03/08/08 08:33:31 (16 months ago)
- Location:
- branches/0.10/lib/Doctrine
- Files:
-
- 3 modified
-
AuditLog/Listener.php (modified) (5 diffs)
-
Record.php (modified) (2 diffs)
-
Template/Versionable.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/AuditLog/Listener.php
r3884 r3954 33 33 class Doctrine_AuditLog_Listener extends Doctrine_Record_Listener 34 34 { 35 35 /** 36 * _auditLog 37 * 38 * @var string 39 */ 36 40 protected $_auditLog; 37 41 42 /** 43 * __construct() 44 * 45 * @param string $Doctrine_AuditLog 46 * @return void 47 */ 38 48 public function __construct(Doctrine_AuditLog $auditLog) 39 49 { … … 41 51 } 42 52 53 /** 54 * preInsert 55 * 56 * @param string $Doctrine_Event 57 * @return void 58 */ 43 59 public function preInsert(Doctrine_Event $event) 44 60 { … … 48 64 } 49 65 66 /** 67 * postInsert 68 * 69 * @param string $Doctrine_Event 70 * @return void 71 */ 50 72 public function postInsert(Doctrine_Event $event) 51 73 { … … 58 80 } 59 81 82 /** 83 * preDelete 84 * 85 * @param string $Doctrine_Event 86 * @return void 87 */ 60 88 public function preDelete(Doctrine_Event $event) 61 89 { … … 74 102 } 75 103 104 /** 105 * preUpdate 106 * 107 * @param string $Doctrine_Event 108 * @return void 109 */ 76 110 public function preUpdate(Doctrine_Event $event) 77 111 { -
branches/0.10/lib/Doctrine/Record.php
r3930 r3954 198 198 199 199 $this->construct(); 200 201 } 202 200 } 203 201 204 202 /** … … 1838 1836 if ($deep) { 1839 1837 foreach ($this->_references as $name => $reference) { 1840 //echo '<pre>'.print_r($reference->toArray(true), true).'</pre>';1841 1838 if ( ! ($reference instanceof Doctrine_Null)) { 1842 1839 $reference->free($deep); -
branches/0.10/lib/Doctrine/Template/Versionable.php
r3884 r3954 33 33 class Doctrine_Template_Versionable extends Doctrine_Template 34 34 { 35 /** 36 * __construct 37 * 38 * @param string $array 39 * @return void 40 */ 35 41 public function __construct(array $options) 36 42 { 37 43 $this->_plugin = new Doctrine_AuditLog($options); 38 44 } 45 46 /** 47 * setUp 48 * 49 * @return void 50 */ 39 51 public function setUp() 40 52 { … … 45 57 $this->addListener(new Doctrine_AuditLog_Listener($this->_plugin)); 46 58 } 59 60 /** 61 * getAuditLog 62 * 63 * @return void 64 */ 47 65 public function getAuditLog() 48 66 { 49 67 return $this->_plugin; 50 68 } 51 52 69 }