1
0
mirror of synced 2025-01-18 06:21:40 +03:00

coverage report against head

This commit is contained in:
meus 2007-11-03 21:02:50 +00:00
parent ea803566b6
commit 4640cb2be4
6 changed files with 1184 additions and 1157 deletions

View File

@ -16,7 +16,7 @@
<td class="normal">/*
</td></tr>
<tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Doctrine.php&nbsp;3055&nbsp;2007-11-01&nbsp;22:52:40Z&nbsp;zYne&nbsp;$
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Doctrine.php&nbsp;3066&nbsp;2007-11-02&nbsp;16:07:11Z&nbsp;meus&nbsp;$
</td></tr>
<tr><td>4</td>
<td class="normal">&nbsp;*
@ -103,7 +103,7 @@
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr>
<tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3055&nbsp;$
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3066&nbsp;$
</td></tr>
<tr><td>33</td>
<td class="normal">&nbsp;*/

View File

@ -16,7 +16,7 @@
<td class="normal">/*
</td></tr>
<tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Configurable.php&nbsp;3059&nbsp;2007-11-01&nbsp;23:03:32Z&nbsp;zYne&nbsp;$
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Configurable.php&nbsp;3067&nbsp;2007-11-02&nbsp;16:59:20Z&nbsp;phuson&nbsp;$
</td></tr>
<tr><td>4</td>
<td class="normal">&nbsp;*
@ -103,7 +103,7 @@
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr>
<tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3059&nbsp;$
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3067&nbsp;$
</td></tr>
<tr><td>33</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
@ -469,7 +469,7 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>154</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;=&nbsp;null)&nbsp;{
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;==&nbsp;null)&nbsp;{
</td></tr>
<tr><td>155</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$namespace&nbsp;=&nbsp;$this-&gt;getAttribute(Doctrine::ATTR_DEFAULT_PARAM_NAMESPACE);
@ -523,7 +523,7 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>172</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;=&nbsp;null)&nbsp;{
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;==&nbsp;null)&nbsp;{
</td></tr>
<tr><td>173</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$namespace&nbsp;=&nbsp;$this-&gt;getAttribute(Doctrine::ATTR_DEFAULT_PARAM_NAMESPACE);
@ -556,7 +556,7 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>183</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;=&nbsp;null)&nbsp;{
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; if&nbsp;($namespace&nbsp;==&nbsp;null)&nbsp;{
</td></tr>
<tr><td>184</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$namespace&nbsp;=&nbsp;$this-&gt;getAttribute(Doctrine::ATTR_DEFAULT_PARAM_NAMESPACE);

View File

@ -16,7 +16,7 @@
<td class="normal">/*
</td></tr>
<tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Mysql.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Mysql.php&nbsp;3070&nbsp;2007-11-03&nbsp;15:47:24Z&nbsp;zYne&nbsp;$
</td></tr>
<tr><td>4</td>
<td class="normal">&nbsp;*
@ -97,7 +97,7 @@
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lukas&nbsp;Smith&nbsp;&lt;smith@pooteeweet.org&gt;&nbsp;(PEAR&nbsp;MDB2&nbsp;library)
</td></tr>
<tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3070&nbsp;$
</td></tr>
<tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com
@ -298,344 +298,342 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;&nbsp;&nbsp;&nbsp;charset
</td></tr>
<tr><td>97</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>98</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr>
<tr><td>99</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>100</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;setCharset($charset)
</td></tr>
<tr><td>101</td>
<tr><td>99</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>100</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;'SET&nbsp;NAMES&nbsp;'&nbsp;.&nbsp;$this-&gt;quote($charset);
</td></tr>
<tr><td>101</td>
<td class="normal">
</td></tr>
<tr><td>102</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;'SET&nbsp;NAMES&nbsp;'.$this-&gt;dbh-&gt;quote($charset);
</td></tr>
<tr><td>103</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;exec($query);
</td></tr>
<tr><td>104</td>
<tr><td>103</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>105</td>
<tr><td>104</td>
<td class="normal">
</td></tr>
<tr><td>106</td>
<tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>107</td>
<tr><td>106</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Execute&nbsp;a&nbsp;SQL&nbsp;REPLACE&nbsp;query.&nbsp;A&nbsp;REPLACE&nbsp;query&nbsp;is&nbsp;identical&nbsp;to&nbsp;a&nbsp;INSERT
</td></tr>
<tr><td>108</td>
<tr><td>107</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;query,&nbsp;except&nbsp;that&nbsp;if&nbsp;there&nbsp;is&nbsp;already&nbsp;a&nbsp;row&nbsp;in&nbsp;the&nbsp;table&nbsp;with&nbsp;the&nbsp;same
</td></tr>
<tr><td>109</td>
<tr><td>108</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;key&nbsp;field&nbsp;values,&nbsp;the&nbsp;REPLACE&nbsp;query&nbsp;just&nbsp;updates&nbsp;its&nbsp;values&nbsp;instead&nbsp;of
</td></tr>
<tr><td>110</td>
<tr><td>109</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;inserting&nbsp;a&nbsp;new&nbsp;row.
</td></tr>
<tr><td>111</td>
<tr><td>110</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>112</td>
<tr><td>111</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;The&nbsp;REPLACE&nbsp;type&nbsp;of&nbsp;query&nbsp;does&nbsp;not&nbsp;make&nbsp;part&nbsp;of&nbsp;the&nbsp;SQL&nbsp;standards.&nbsp;Since
</td></tr>
<tr><td>113</td>
<tr><td>112</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;practically&nbsp;only&nbsp;MySQL&nbsp;implements&nbsp;it&nbsp;natively,&nbsp;this&nbsp;type&nbsp;of&nbsp;query&nbsp;is
</td></tr>
<tr><td>114</td>
<tr><td>113</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;emulated&nbsp;through&nbsp;this&nbsp;method&nbsp;for&nbsp;other&nbsp;DBMS&nbsp;using&nbsp;standard&nbsp;types&nbsp;of
</td></tr>
<tr><td>115</td>
<tr><td>114</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;queries&nbsp;inside&nbsp;a&nbsp;transaction&nbsp;to&nbsp;assure&nbsp;the&nbsp;atomicity&nbsp;of&nbsp;the&nbsp;operation.
</td></tr>
<tr><td>116</td>
<tr><td>115</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>117</td>
<tr><td>116</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@access&nbsp;public
</td></tr>
<tr><td>118</td>
<tr><td>117</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>119</td>
<tr><td>118</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$table&nbsp;name&nbsp;of&nbsp;the&nbsp;table&nbsp;on&nbsp;which&nbsp;the&nbsp;REPLACE&nbsp;query&nbsp;will
</td></tr>
<tr><td>120</td>
<tr><td>119</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;be&nbsp;executed.
</td></tr>
<tr><td>121</td>
<tr><td>120</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$fields&nbsp;associative&nbsp;array&nbsp;that&nbsp;describes&nbsp;the&nbsp;fields&nbsp;and&nbsp;the
</td></tr>
<tr><td>122</td>
<tr><td>121</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;values&nbsp;that&nbsp;will&nbsp;be&nbsp;inserted&nbsp;or&nbsp;updated&nbsp;in&nbsp;the&nbsp;specified&nbsp;table.&nbsp;The
</td></tr>
<tr><td>123</td>
<tr><td>122</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;indexes&nbsp;of&nbsp;the&nbsp;array&nbsp;are&nbsp;the&nbsp;names&nbsp;of&nbsp;all&nbsp;the&nbsp;fields&nbsp;of&nbsp;the&nbsp;table.&nbsp;The
</td></tr>
<tr><td>124</td>
<tr><td>123</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;values&nbsp;of&nbsp;the&nbsp;array&nbsp;are&nbsp;also&nbsp;associative&nbsp;arrays&nbsp;that&nbsp;describe&nbsp;the
</td></tr>
<tr><td>125</td>
<tr><td>124</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;values&nbsp;and&nbsp;other&nbsp;properties&nbsp;of&nbsp;the&nbsp;table&nbsp;fields.
</td></tr>
<tr><td>126</td>
<tr><td>125</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>127</td>
<tr><td>126</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;Here&nbsp;follows&nbsp;a&nbsp;list&nbsp;of&nbsp;field&nbsp;properties&nbsp;that&nbsp;need&nbsp;to&nbsp;be&nbsp;specified:
</td></tr>
<tr><td>128</td>
<tr><td>127</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>129</td>
<tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;value:
</td></tr>
<tr><td>130</td>
<tr><td>129</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value&nbsp;to&nbsp;be&nbsp;assigned&nbsp;to&nbsp;the&nbsp;specified&nbsp;field.&nbsp;This&nbsp;value&nbsp;may&nbsp;be
</td></tr>
<tr><td>131</td>
<tr><td>130</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;specified&nbsp;in&nbsp;database&nbsp;independent&nbsp;type&nbsp;format&nbsp;as&nbsp;this
</td></tr>
<tr><td>132</td>
<tr><td>131</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;can&nbsp;perform&nbsp;the&nbsp;necessary&nbsp;datatype&nbsp;conversions.
</td></tr>
<tr><td>133</td>
<tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>134</td>
<tr><td>133</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;Default:
</td></tr>
<tr><td>135</td>
<tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;property&nbsp;is&nbsp;required&nbsp;unless&nbsp;the&nbsp;Null&nbsp;property
</td></tr>
<tr><td>136</td>
<tr><td>135</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;set&nbsp;to&nbsp;1.
</td></tr>
<tr><td>137</td>
<tr><td>136</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>138</td>
<tr><td>137</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;type
</td></tr>
<tr><td>139</td>
<tr><td>138</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name&nbsp;of&nbsp;the&nbsp;type&nbsp;of&nbsp;the&nbsp;field.&nbsp;Currently,&nbsp;all&nbsp;types&nbsp;Metabase
</td></tr>
<tr><td>140</td>
<tr><td>139</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;are&nbsp;supported&nbsp;except&nbsp;for&nbsp;clob&nbsp;and&nbsp;blob.
</td></tr>
<tr><td>141</td>
<tr><td>140</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>142</td>
<tr><td>141</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;Default:&nbsp;no&nbsp;type&nbsp;conversion
</td></tr>
<tr><td>143</td>
<tr><td>142</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>144</td>
<tr><td>143</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;null
</td></tr>
<tr><td>145</td>
<tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Boolean&nbsp;property&nbsp;that&nbsp;indicates&nbsp;that&nbsp;the&nbsp;value&nbsp;for&nbsp;this&nbsp;field
</td></tr>
<tr><td>146</td>
<tr><td>145</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;should&nbsp;be&nbsp;set&nbsp;to&nbsp;null.
</td></tr>
<tr><td>147</td>
<tr><td>146</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>148</td>
<tr><td>147</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;default&nbsp;value&nbsp;for&nbsp;fields&nbsp;missing&nbsp;in&nbsp;INSERT&nbsp;queries&nbsp;may&nbsp;be
</td></tr>
<tr><td>149</td>
<tr><td>148</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;specified&nbsp;the&nbsp;definition&nbsp;of&nbsp;a&nbsp;table.&nbsp;Often,&nbsp;the&nbsp;default&nbsp;value
</td></tr>
<tr><td>150</td>
<tr><td>149</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;already&nbsp;null,&nbsp;but&nbsp;since&nbsp;the&nbsp;REPLACE&nbsp;may&nbsp;be&nbsp;emulated&nbsp;using
</td></tr>
<tr><td>151</td>
<tr><td>150</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;an&nbsp;UPDATE&nbsp;query,&nbsp;make&nbsp;sure&nbsp;that&nbsp;all&nbsp;fields&nbsp;of&nbsp;the&nbsp;table&nbsp;are
</td></tr>
<tr><td>152</td>
<tr><td>151</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;listed&nbsp;in&nbsp;this&nbsp;function&nbsp;argument&nbsp;array.
</td></tr>
<tr><td>153</td>
<tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>153</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;Default:&nbsp;0
</td></tr>
<tr><td>154</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;Default:&nbsp;0
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>155</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;key
</td></tr>
<tr><td>157</td>
<tr><td>156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Boolean&nbsp;property&nbsp;that&nbsp;indicates&nbsp;that&nbsp;this&nbsp;field&nbsp;should&nbsp;be
</td></tr>
<tr><td>158</td>
<tr><td>157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;handled&nbsp;as&nbsp;a&nbsp;primary&nbsp;key&nbsp;or&nbsp;at&nbsp;least&nbsp;as&nbsp;part&nbsp;of&nbsp;the&nbsp;compound
</td></tr>
<tr><td>159</td>
<tr><td>158</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unique&nbsp;index&nbsp;of&nbsp;the&nbsp;table&nbsp;that&nbsp;will&nbsp;determine&nbsp;the&nbsp;row&nbsp;that&nbsp;will
</td></tr>
<tr><td>160</td>
<tr><td>159</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;updated&nbsp;if&nbsp;it&nbsp;exists&nbsp;or&nbsp;inserted&nbsp;a&nbsp;new&nbsp;row&nbsp;otherwise.
</td></tr>
<tr><td>161</td>
<tr><td>160</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>162</td>
<tr><td>161</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;will&nbsp;fail&nbsp;if&nbsp;no&nbsp;key&nbsp;field&nbsp;is&nbsp;specified&nbsp;or&nbsp;if&nbsp;the
</td></tr>
<tr><td>163</td>
<tr><td>162</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value&nbsp;of&nbsp;a&nbsp;key&nbsp;field&nbsp;is&nbsp;set&nbsp;to&nbsp;null&nbsp;because&nbsp;fields&nbsp;that&nbsp;are
</td></tr>
<tr><td>164</td>
<tr><td>163</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;part&nbsp;of&nbsp;unique&nbsp;index&nbsp;they&nbsp;may&nbsp;not&nbsp;be&nbsp;null.
</td></tr>
<tr><td>165</td>
<tr><td>164</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>166</td>
<tr><td>165</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;Default:&nbsp;0
</td></tr>
<tr><td>167</td>
<tr><td>166</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>168</td>
<tr><td>167</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;number&nbsp;of&nbsp;affected&nbsp;rows
</td></tr>
<tr><td>169</td>
<tr><td>168</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>170</td>
<tr><td>169</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;replace($table,&nbsp;array&nbsp;$fields,&nbsp;array&nbsp;$keys)
</td></tr>
<tr><td>171</td>
<tr><td>170</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>172</td>
<tr><td>171</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$count&nbsp;=&nbsp;count($fields);
</td></tr>
<tr><td>173</td>
<tr><td>172</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;$values&nbsp;=&nbsp;'';
</td></tr>
<tr><td>174</td>
<tr><td>173</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$keys&nbsp;=&nbsp;$colnum&nbsp;=&nbsp;0;
</td></tr>
<tr><td>175</td>
<tr><td>174</td>
<td class="normal">
</td></tr>
<tr><td>176</td>
<tr><td>175</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(reset($fields);&nbsp;$colnum&nbsp;&lt;&nbsp;$count;&nbsp;next($fields),&nbsp;$colnum++)&nbsp;{
</td></tr>
<tr><td>177</td>
<tr><td>176</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name&nbsp;=&nbsp;key($fields);
</td></tr>
<tr><td>178</td>
<tr><td>177</td>
<td class="normal">
</td></tr>
<tr><td>179</td>
<tr><td>178</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($colnum&nbsp;&gt;&nbsp;0)&nbsp;{
</td></tr>
<tr><td>180</td>
<tr><td>179</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;.=&nbsp;',';
</td></tr>
<tr><td>181</td>
<tr><td>180</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$values.=&nbsp;',';
</td></tr>
<tr><td>182</td>
<tr><td>181</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>182</td>
<td class="normal">
</td></tr>
<tr><td>183</td>
<td class="normal">
</td></tr>
<tr><td>184</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;.=&nbsp;$name;
</td></tr>
<tr><td>185</td>
<tr><td>184</td>
<td class="normal">
</td></tr>
<tr><td>186</td>
<tr><td>185</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($fields[$name]['null'])&nbsp;&amp;&amp;&nbsp;$fields[$name]['null'])&nbsp;{
</td></tr>
<tr><td>187</td>
<tr><td>186</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'NULL';
</td></tr>
<tr><td>188</td>
<tr><td>187</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>189</td>
<tr><td>188</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$type&nbsp;=&nbsp;isset($fields[$name]['type'])&nbsp;?&nbsp;$fields[$name]['type']&nbsp;:&nbsp;null;
</td></tr>
<tr><td>190</td>
<tr><td>189</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$this-&gt;quote($fields[$name]['value'],&nbsp;$type);
</td></tr>
<tr><td>191</td>
<tr><td>190</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>192</td>
<tr><td>191</td>
<td class="normal">
</td></tr>
<tr><td>193</td>
<tr><td>192</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$values&nbsp;.=&nbsp;$value;
</td></tr>
<tr><td>194</td>
<tr><td>193</td>
<td class="normal">
</td></tr>
<tr><td>195</td>
<tr><td>194</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($fields[$name]['key'])&nbsp;&amp;&amp;&nbsp;$fields[$name]['key'])&nbsp;{
</td></tr>
<tr><td>196</td>
<tr><td>195</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($value&nbsp;===&nbsp;'NULL')&nbsp;{
</td></tr>
<tr><td>197</td>
<tr><td>196</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Connection_Mysql_Exception('key&nbsp;value&nbsp;'.$name.'&nbsp;may&nbsp;not&nbsp;be&nbsp;NULL');
</td></tr>
<tr><td>198</td>
<tr><td>197</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>199</td>
<tr><td>198</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$keys++;
</td></tr>
<tr><td>200</td>
<tr><td>199</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>201</td>
<tr><td>200</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>202</td>
<tr><td>201</td>
<td class="normal">
</td></tr>
<tr><td>203</td>
<tr><td>202</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($keys&nbsp;==&nbsp;0)&nbsp;{
</td></tr>
<tr><td>204</td>
<tr><td>203</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Connection_Mysql_Exception('not&nbsp;specified&nbsp;which&nbsp;fields&nbsp;are&nbsp;keys');
</td></tr>
<tr><td>205</td>
<tr><td>204</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>206</td>
<tr><td>205</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$query&nbsp;=&nbsp;'REPLACE&nbsp;INTO&nbsp;'&nbsp;.&nbsp;$table&nbsp;.&nbsp;'&nbsp;('&nbsp;.&nbsp;$query&nbsp;.&nbsp;')&nbsp;VALUES&nbsp;('&nbsp;.&nbsp;$values&nbsp;.&nbsp;')';
</td></tr>
<tr><td>207</td>
<tr><td>206</td>
<td class="normal">
</td></tr>
<tr><td>208</td>
<tr><td>207</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;exec($query);
</td></tr>
<tr><td>209</td>
<tr><td>208</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>210</td>
<td class="covered">}</td></tr>
<tr><td>209</td>
<td class="normal">}
</td></tr>
</table></body></html>

View File

@ -3739,6 +3739,5 @@
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1244</td>
<td class="normal">}
</td></tr>
<td class="covered">}</td></tr>
</table></body></html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long