Doctrine_Adapter_Mock.html 17.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<html>
    <head>
        <title>Coverage for Doctrine_Adapter_Mock</title>
        <style type="text/css">
            .covered{ background: green;}
            .normal{ background: white;}
            .red{ background: red;}
            .orange{ background: #f90;}
       </style>
</head>
<body><h1>Coverage for Doctrine_Adapter_Mock</h1><p><a href="index.php">Back to coverage report</a></p><table>
<tr><td>1</td>
13
<td class="normal">&lt;?php
14 15
</td></tr>
<tr><td>2</td>
16
<td class="normal">/*
17 18
</td></tr>
<tr><td>3</td>
19
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Mock.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$
20 21
</td></tr>
<tr><td>4</td>
22
<td class="normal">&nbsp;*
23 24
</td></tr>
<tr><td>5</td>
25
<td class="normal">&nbsp;*&nbsp;THIS&nbsp;SOFTWARE&nbsp;IS&nbsp;PROVIDED&nbsp;BY&nbsp;THE&nbsp;COPYRIGHT&nbsp;HOLDERS&nbsp;AND&nbsp;CONTRIBUTORS
26 27
</td></tr>
<tr><td>6</td>
28
<td class="normal">&nbsp;*&nbsp;&quot;AS&nbsp;IS&quot;&nbsp;AND&nbsp;ANY&nbsp;EXPRESS&nbsp;OR&nbsp;IMPLIED&nbsp;WARRANTIES,&nbsp;INCLUDING,&nbsp;BUT&nbsp;NOT
29 30
</td></tr>
<tr><td>7</td>
31
<td class="normal">&nbsp;*&nbsp;LIMITED&nbsp;TO,&nbsp;THE&nbsp;IMPLIED&nbsp;WARRANTIES&nbsp;OF&nbsp;MERCHANTABILITY&nbsp;AND&nbsp;FITNESS&nbsp;FOR
32 33
</td></tr>
<tr><td>8</td>
34
<td class="normal">&nbsp;*&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE&nbsp;ARE&nbsp;DISCLAIMED.&nbsp;IN&nbsp;NO&nbsp;EVENT&nbsp;SHALL&nbsp;THE&nbsp;COPYRIGHT
35 36
</td></tr>
<tr><td>9</td>
37
<td class="normal">&nbsp;*&nbsp;OWNER&nbsp;OR&nbsp;CONTRIBUTORS&nbsp;BE&nbsp;LIABLE&nbsp;FOR&nbsp;ANY&nbsp;DIRECT,&nbsp;INDIRECT,&nbsp;INCIDENTAL,
38 39
</td></tr>
<tr><td>10</td>
40
<td class="normal">&nbsp;*&nbsp;SPECIAL,&nbsp;EXEMPLARY,&nbsp;OR&nbsp;CONSEQUENTIAL&nbsp;DAMAGES&nbsp;(INCLUDING,&nbsp;BUT&nbsp;NOT
41 42
</td></tr>
<tr><td>11</td>
43
<td class="normal">&nbsp;*&nbsp;LIMITED&nbsp;TO,&nbsp;PROCUREMENT&nbsp;OF&nbsp;SUBSTITUTE&nbsp;GOODS&nbsp;OR&nbsp;SERVICES;&nbsp;LOSS&nbsp;OF&nbsp;USE,
44 45
</td></tr>
<tr><td>12</td>
46
<td class="normal">&nbsp;*&nbsp;DATA,&nbsp;OR&nbsp;PROFITS;&nbsp;OR&nbsp;BUSINESS&nbsp;INTERRUPTION)&nbsp;HOWEVER&nbsp;CAUSED&nbsp;AND&nbsp;ON&nbsp;ANY
47 48
</td></tr>
<tr><td>13</td>
49
<td class="normal">&nbsp;*&nbsp;THEORY&nbsp;OF&nbsp;LIABILITY,&nbsp;WHETHER&nbsp;IN&nbsp;CONTRACT,&nbsp;STRICT&nbsp;LIABILITY,&nbsp;OR&nbsp;TORT
50 51
</td></tr>
<tr><td>14</td>
52
<td class="normal">&nbsp;*&nbsp;(INCLUDING&nbsp;NEGLIGENCE&nbsp;OR&nbsp;OTHERWISE)&nbsp;ARISING&nbsp;IN&nbsp;ANY&nbsp;WAY&nbsp;OUT&nbsp;OF&nbsp;THE&nbsp;USE
53 54
</td></tr>
<tr><td>15</td>
55
<td class="normal">&nbsp;*&nbsp;OF&nbsp;THIS&nbsp;SOFTWARE,&nbsp;EVEN&nbsp;IF&nbsp;ADVISED&nbsp;OF&nbsp;THE&nbsp;POSSIBILITY&nbsp;OF&nbsp;SUCH&nbsp;DAMAGE.
56 57
</td></tr>
<tr><td>16</td>
58
<td class="normal">&nbsp;*
59 60
</td></tr>
<tr><td>17</td>
61
<td class="normal">&nbsp;*&nbsp;This&nbsp;software&nbsp;consists&nbsp;of&nbsp;voluntary&nbsp;contributions&nbsp;made&nbsp;by&nbsp;many&nbsp;individuals
62 63
</td></tr>
<tr><td>18</td>
64
<td class="normal">&nbsp;*&nbsp;and&nbsp;is&nbsp;licensed&nbsp;under&nbsp;the&nbsp;LGPL.&nbsp;For&nbsp;more&nbsp;information,&nbsp;see
65 66
</td></tr>
<tr><td>19</td>
67
<td class="normal">&nbsp;*&nbsp;&lt;http://www.phpdoctrine.org&gt;.
68 69
</td></tr>
<tr><td>20</td>
70
<td class="normal">&nbsp;*/
71 72
</td></tr>
<tr><td>21</td>
73
<td class="normal">
74 75
</td></tr>
<tr><td>22</td>
76
<td class="normal">/**
77 78
</td></tr>
<tr><td>23</td>
79
<td class="normal">&nbsp;*&nbsp;Doctrine_Adapter_Mock
80 81
</td></tr>
<tr><td>24</td>
82
<td class="normal">&nbsp;*&nbsp;This&nbsp;class&nbsp;is&nbsp;used&nbsp;for&nbsp;special&nbsp;testing&nbsp;purposes.
83 84
</td></tr>
<tr><td>25</td>
85
<td class="normal">&nbsp;*
86 87
</td></tr>
<tr><td>26</td>
88
<td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine
89 90
</td></tr>
<tr><td>27</td>
91
<td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Adapter
92 93
</td></tr>
<tr><td>28</td>
94
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
95 96
</td></tr>
<tr><td>29</td>
97
<td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL
98 99
</td></tr>
<tr><td>30</td>
100
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.org
101 102
</td></tr>
<tr><td>31</td>
103
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
104 105
</td></tr>
<tr><td>32</td>
106
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$
107 108
</td></tr>
<tr><td>33</td>
109
<td class="normal">&nbsp;*/
110 111
</td></tr>
<tr><td>34</td>
112
<td class="covered">class&nbsp;Doctrine_Adapter_Mock&nbsp;implements&nbsp;Doctrine_Adapter_Interface,&nbsp;Countable
113 114
</td></tr>
<tr><td>35</td>
115
<td class="normal">{
116 117
</td></tr>
<tr><td>36</td>
118
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;$name;
119 120
</td></tr>
<tr><td>37</td>
121
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;
122 123
</td></tr>
<tr><td>38</td>
124
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;$queries&nbsp;=&nbsp;array();
125 126
</td></tr>
<tr><td>39</td>
127
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;
128 129
</td></tr>
<tr><td>40</td>
130
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;$exception&nbsp;=&nbsp;array();
131 132
</td></tr>
<tr><td>41</td>
133
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;
134 135
</td></tr>
<tr><td>42</td>
136
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;$lastInsertIdFail&nbsp;=&nbsp;false;
137 138
</td></tr>
<tr><td>43</td>
139
<td class="normal">
140 141
</td></tr>
<tr><td>44</td>
142
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;__construct($name&nbsp;=&nbsp;null)&nbsp;
143 144
</td></tr>
<tr><td>45</td>
145
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
146 147
</td></tr>
<tr><td>46</td>
148
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;name&nbsp;=&nbsp;$name;
149 150
</td></tr>
<tr><td>47</td>
151
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
152 153
</td></tr>
<tr><td>48</td>
154
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getName()&nbsp;
155 156
</td></tr>
<tr><td>49</td>
157
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
158 159
</td></tr>
<tr><td>50</td>
160
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;name;
161 162
</td></tr>
<tr><td>51</td>
163
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
164 165
</td></tr>
<tr><td>52</td>
166
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;pop()&nbsp;
167 168
</td></tr>
<tr><td>53</td>
169
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
170 171
</td></tr>
<tr><td>54</td>
172
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;array_pop($this-&gt;queries);
173 174
</td></tr>
<tr><td>55</td>
175
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
176 177
</td></tr>
<tr><td>56</td>
178
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;forceException($name,&nbsp;$message&nbsp;=&nbsp;'',&nbsp;$code&nbsp;=&nbsp;0)&nbsp;
179 180
</td></tr>
<tr><td>57</td>
181
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
182 183
</td></tr>
<tr><td>58</td>
184
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;exception&nbsp;=&nbsp;array($name,&nbsp;$message,&nbsp;$code);
185 186
</td></tr>
<tr><td>59</td>
187
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
188 189
</td></tr>
<tr><td>60</td>
190
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;prepare($query)
191 192
</td></tr>
<tr><td>61</td>
193
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
194 195
</td></tr>
<tr><td>62</td>
196
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mock&nbsp;=&nbsp;new&nbsp;Doctrine_Adapter_Statement_Mock($this,&nbsp;$query);
197 198
</td></tr>
<tr><td>63</td>
199
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$mock-&gt;queryString&nbsp;=&nbsp;$query;
200 201
</td></tr>
<tr><td>64</td>
202
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
203 204
</td></tr>
<tr><td>65</td>
205
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$mock;
206 207
</td></tr>
<tr><td>66</td>
208
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
209 210
</td></tr>
<tr><td>67</td>
211
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;addQuery($query)
212 213
</td></tr>
<tr><td>68</td>
214
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
215 216
</td></tr>
<tr><td>69</td>
217
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;$query;
218 219
</td></tr>
<tr><td>70</td>
220
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
221 222
</td></tr>
<tr><td>71</td>
223
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;query($query)&nbsp;
224 225
</td></tr>
<tr><td>72</td>
226
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
227 228
</td></tr>
<tr><td>73</td>
229
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;$query;
230 231
</td></tr>
<tr><td>74</td>
232
<td class="normal">
233 234
</td></tr>
<tr><td>75</td>
235
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;$this-&gt;exception;
236 237
</td></tr>
<tr><td>76</td>
238
<td class="normal">
239 240
</td></tr>
<tr><td>77</td>
241
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($e))&nbsp;{
242 243
</td></tr>
<tr><td>78</td>
244
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;=&nbsp;$e[0];
245 246
</td></tr>
<tr><td>79</td>
247
<td class="normal">
248 249
</td></tr>
<tr><td>80</td>
250
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;exception&nbsp;=&nbsp;array();
251 252
</td></tr>
<tr><td>81</td>
253
<td class="normal">
254 255
</td></tr>
<tr><td>82</td>
256
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;$name($e[1],&nbsp;$e[2]);
257 258
</td></tr>
<tr><td>83</td>
259
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
260 261
</td></tr>
<tr><td>84</td>
262
<td class="normal">
263 264
</td></tr>
<tr><td>85</td>
265
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$stmt&nbsp;=&nbsp;new&nbsp;Doctrine_Adapter_Statement_Mock($this,&nbsp;$query);
266 267
</td></tr>
<tr><td>86</td>
268
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$stmt-&gt;queryString&nbsp;=&nbsp;$query;
269 270
</td></tr>
<tr><td>87</td>
271
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
272 273
</td></tr>
<tr><td>88</td>
274
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$stmt;
275 276
</td></tr>
<tr><td>89</td>
277
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
278 279
</td></tr>
<tr><td>90</td>
280
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getAll()&nbsp;
281 282
</td></tr>
<tr><td>91</td>
283
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
284 285
</td></tr>
<tr><td>92</td>
286
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;queries;
287 288
</td></tr>
<tr><td>93</td>
289
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
290 291
</td></tr>
<tr><td>94</td>
292
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;quote($input)&nbsp;
293 294
</td></tr>
<tr><td>95</td>
295
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
296 297
</td></tr>
<tr><td>96</td>
298
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;&quot;'&quot;&nbsp;.&nbsp;addslashes($input)&nbsp;.&nbsp;&quot;'&quot;;
299 300
</td></tr>
<tr><td>97</td>
301
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
302 303
</td></tr>
<tr><td>98</td>
304
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;exec($statement)&nbsp;
305 306
</td></tr>
<tr><td>99</td>
307
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
308 309
</td></tr>
<tr><td>100</td>
310
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;$statement;
311 312
</td></tr>
<tr><td>101</td>
313
<td class="normal">
314 315
</td></tr>
<tr><td>102</td>
316
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;$this-&gt;exception;
317 318
</td></tr>
<tr><td>103</td>
319
<td class="normal">
320 321
</td></tr>
<tr><td>104</td>
322
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;!&nbsp;empty($e))&nbsp;{
323 324
</td></tr>
<tr><td>105</td>
325
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;=&nbsp;$e[0];
326 327
</td></tr>
<tr><td>106</td>
328
<td class="normal">
329 330
</td></tr>
<tr><td>107</td>
331
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;exception&nbsp;=&nbsp;array();
332 333
</td></tr>
<tr><td>108</td>
334
<td class="normal">
335 336
</td></tr>
<tr><td>109</td>
337
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;$name($e[1],&nbsp;$e[2]);
338 339
</td></tr>
<tr><td>110</td>
340
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
341 342
</td></tr>
<tr><td>111</td>
343
<td class="normal">
344 345
</td></tr>
<tr><td>112</td>
346
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;0;
347 348
</td></tr>
<tr><td>113</td>
349
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
350 351
</td></tr>
<tr><td>114</td>
352
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;forceLastInsertIdFail($fail&nbsp;=&nbsp;true)&nbsp;
353 354
</td></tr>
<tr><td>115</td>
355
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
356 357
</td></tr>
<tr><td>116</td>
358
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($fail)&nbsp;{
359 360
</td></tr>
<tr><td>117</td>
361
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;lastInsertIdFail&nbsp;=&nbsp;true;
362 363
</td></tr>
<tr><td>118</td>
364
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
365 366
</td></tr>
<tr><td>119</td>
367
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;lastInsertIdFail&nbsp;=&nbsp;false;
368 369
</td></tr>
<tr><td>120</td>
370
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
371 372
</td></tr>
<tr><td>121</td>
373
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
374 375
</td></tr>
<tr><td>122</td>
376
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;lastInsertId()
377 378
</td></tr>
<tr><td>123</td>
379
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
380 381
</td></tr>
<tr><td>124</td>
382
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;'LAST_INSERT_ID()';
383 384
</td></tr>
<tr><td>125</td>
385
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;lastInsertIdFail)&nbsp;{
386 387
</td></tr>
<tr><td>126</td>
388
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;null;
389 390
</td></tr>
<tr><td>127</td>
391
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
392 393
</td></tr>
<tr><td>128</td>
394
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;1;
395 396
</td></tr>
<tr><td>129</td>
397
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
398 399
</td></tr>
<tr><td>130</td>
400
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
401 402
</td></tr>
<tr><td>131</td>
403
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;count()&nbsp;
404 405
</td></tr>
<tr><td>132</td>
406
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
407 408
</td></tr>
<tr><td>133</td>
409
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;count($this-&gt;queries);&nbsp;&nbsp;&nbsp;&nbsp;
410 411
</td></tr>
<tr><td>134</td>
412
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
413 414
</td></tr>
<tr><td>135</td>
415
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;beginTransaction()
416 417
</td></tr>
<tr><td>136</td>
418
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
419 420
</td></tr>
<tr><td>137</td>
421
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;'BEGIN&nbsp;TRANSACTION';
422 423
</td></tr>
<tr><td>138</td>
424
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
425 426
</td></tr>
<tr><td>139</td>
427
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;commit()
428 429
</td></tr>
<tr><td>140</td>
430
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
431 432
</td></tr>
<tr><td>141</td>
433
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;'COMMIT';
434 435
</td></tr>
<tr><td>142</td>
436
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
437 438
</td></tr>
<tr><td>143</td>
439
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;rollBack()&nbsp;
440 441
</td></tr>
<tr><td>144</td>
442
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
443 444
</td></tr>
<tr><td>145</td>
445
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;queries[]&nbsp;=&nbsp;'ROLLBACK';
446 447
</td></tr>
<tr><td>146</td>
448
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
449 450
</td></tr>
<tr><td>147</td>
451
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;errorCode()&nbsp;
452 453
</td></tr>
<tr><td>148</td>
454
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;}
455 456
</td></tr>
<tr><td>149</td>
457
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;errorInfo()
458 459
</td></tr>
<tr><td>150</td>
460
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;}
461 462
</td></tr>
<tr><td>151</td>
463
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getAttribute($attribute)&nbsp;
464 465
</td></tr>
<tr><td>152</td>
466
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
467 468
</td></tr>
<tr><td>153</td>
469
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($attribute&nbsp;==&nbsp;Doctrine::ATTR_DRIVER_NAME)
470 471
</td></tr>
<tr><td>154</td>
472
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;strtolower($this-&gt;name);
473 474
</td></tr>
<tr><td>155</td>
475
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
476 477
</td></tr>
<tr><td>156</td>
478
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setAttribute($attribute,&nbsp;$value)&nbsp;
479 480
</td></tr>
<tr><td>157</td>
481
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
482 483
</td></tr>
<tr><td>158</td>
484
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
485 486
</td></tr>
<tr><td>159</td>
487
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
488 489
</td></tr>
<tr><td>160</td>
490
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;sqliteCreateFunction()
491 492
</td></tr>
<tr><td>161</td>
493
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;}
494 495
</td></tr>
<tr><td>162</td>
496
<td class="normal">}
497 498
</td></tr>
</table></body></html>