Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
phpgwapi/inc/adodb/adodb-pager.inc.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	var $rs;	// recordset generated
29 29
 	var $curr_page;	// current page number before Render() called, calculated in constructor
30 30
 	var $rows;		// number of rows per page
31
-    var $linksPerPage=10; // number of links per page in navigation bar
32
-    var $showPageLinks; 
31
+	var $linksPerPage=10; // number of links per page in navigation bar
32
+	var $showPageLinks; 
33 33
 
34 34
 	var $gridAttributes = 'width=100% border=1 bgcolor=white';
35 35
 	
@@ -130,40 +130,40 @@  discard block
 block discarded – undo
130 130
 	
131 131
 	//---------------------------------------------------
132 132
 	// original code by "Pablo Costa" <[email protected]> 
133
-        function render_pagelinks()
134
-        {
135
-        global $PHP_SELF;
136
-            $pages        = $this->rs->LastPageNo();
137
-            $linksperpage = $this->linksPerPage ? $this->linksPerPage : $pages;
138
-            for($i=1; $i <= $pages; $i+=$linksperpage)
139
-            {
140
-                if($this->rs->AbsolutePage() >= $i)
141
-                {
142
-                    $start = $i;
143
-                }
144
-            }
133
+		function render_pagelinks()
134
+		{
135
+		global $PHP_SELF;
136
+			$pages        = $this->rs->LastPageNo();
137
+			$linksperpage = $this->linksPerPage ? $this->linksPerPage : $pages;
138
+			for($i=1; $i <= $pages; $i+=$linksperpage)
139
+			{
140
+				if($this->rs->AbsolutePage() >= $i)
141
+				{
142
+					$start = $i;
143
+				}
144
+			}
145 145
 			$numbers = '';
146
-            $end = $start+$linksperpage-1;
146
+			$end = $start+$linksperpage-1;
147 147
 			$link = $this->id . "_next_page";
148
-            if($end > $pages) $end = $pages;
148
+			if($end > $pages) $end = $pages;
149 149
 			
150 150
 			
151 151
 			if ($this->startLinks && $start > 1) {
152 152
 				$pos = $start - 1;
153 153
 				$numbers .= "<a href=$PHP_SELF?$link=$pos>$this->startLinks</a>  ";
154
-            } 
154
+			} 
155 155
 			
156 156
 			for($i=$start; $i <= $end; $i++) {
157
-                if ($this->rs->AbsolutePage() == $i)
158
-                    $numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  ";
159
-                else 
160
-                     $numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  ";
157
+				if ($this->rs->AbsolutePage() == $i)
158
+					$numbers .= "<font color=$this->linkSelectedColor><b>$i</b></font>  ";
159
+				else 
160
+					 $numbers .= "<a href=$PHP_SELF?$link=$i>$i</a>  ";
161 161
             
162
-            }
162
+			}
163 163
 			if ($this->moreLinks && $end < $pages) 
164 164
 				$numbers .= "<a href=$PHP_SELF?$link=$i>$this->moreLinks</a>  ";
165
-            print $numbers . ' &nbsp; ';
166
-        }
165
+			print $numbers . ' &nbsp; ';
166
+		}
167 167
 	// Link to previous page
168 168
 	function render_prev($anchor=true)
169 169
 	{
@@ -208,9 +208,9 @@  discard block
 block discarded – undo
208 208
 			$this->Render_First(false);
209 209
 			$this->Render_Prev(false);
210 210
 		}
211
-        if ($this->showPageLinks){
212
-            $this->Render_PageLinks();
213
-        }
211
+		if ($this->showPageLinks){
212
+			$this->Render_PageLinks();
213
+		}
214 214
 		if (!$this->rs->AtLastPage()) {
215 215
 			$this->Render_Next();
216 216
 			$this->Render_Last();
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/datadict/datadict-postgres.inc.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
   the BSD license will take precedence.
8 8
 
9 9
   Set tabs to 4 for best viewing.
10
-
11
-*/
10
+ */
12 11
 
13 12
 // security - hide paths
14 13
 if (!defined('ADODB_DIR')) die();
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/datadict/datadict-db2.inc.php 1 patch
Indentation   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@  discard block
 block discarded – undo
7 7
   the BSD license will take precedence.
8 8
 	
9 9
   Set tabs to 4 for best viewing.
10
- 
11
-*/
10
+ */
12 11
 // security - hide paths
13 12
 if (!defined('ADODB_DIR')) die();
14 13
 
@@ -77,8 +76,7 @@  discard block
 block discarded – undo
77 76
 		/**
78 77
 		  Allow basic table changes to DB2 databases
79 78
 		  DB2 will fatally reject changes to non character columns 
80
-
81
-		*/
79
+		 */
82 80
 		
83 81
 		$validTypes = array("CHAR","VARC");
84 82
 		$invalidTypes = array("BIGI","BLOB","CLOB","DATE", "DECI","DOUB", "INTE", "REAL","SMAL", "TIME");
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/datadict/datadict-mssql.inc.php 1 patch
Indentation   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@  discard block
 block discarded – undo
7 7
   the BSD license will take precedence.
8 8
 	
9 9
   Set tabs to 4 for best viewing.
10
- 
11
-*/
10
+ */
12 11
 
13 12
 // security - hide paths
14 13
 if (!defined('ADODB_DIR')) die();
@@ -277,8 +276,8 @@  discard block
 block discarded – undo
277 276
 		case 'BIGINT':
278 277
 			return $ftype;
279 278
 		}
280
-    	if ($ty == 'T') return $ftype;
281
-    	return parent::_GetSize($ftype, $ty, $fsize, $fprec);    
279
+		if ($ty == 'T') return $ftype;
280
+		return parent::_GetSize($ftype, $ty, $fsize, $fprec);    
282 281
 
283 282
 	}
284 283
 }
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/datadict/datadict-access.inc.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
   the BSD license will take precedence.
8 8
 	
9 9
   Set tabs to 4 for best viewing.
10
- 
11
-*/
10
+ */
12 11
 
13 12
 // security - hide paths
14 13
 if (!defined('ADODB_DIR')) die();
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/adodb-xmlschema.inc.php 1 patch
Indentation   +567 added lines, -567 removed lines patch added patch discarded remove patch
@@ -92,45 +92,45 @@  discard block
 block discarded – undo
92 92
 class dbObject {
93 93
 	
94 94
 	/**
95
-	* var object Parent
96
-	*/
95
+	 * var object Parent
96
+	 */
97 97
 	var $parent;
98 98
 	
99 99
 	/**
100
-	* var string current element
101
-	*/
100
+	 * var string current element
101
+	 */
102 102
 	var $currentElement;
103 103
 	
104 104
 	/**
105
-	* NOP
106
-	*/
105
+	 * NOP
106
+	 */
107 107
 	function dbObject( &$parent, $attributes = NULL ) {
108 108
 		$this->parent =& $parent;
109 109
 	}
110 110
 	
111 111
 	/**
112
-	* XML Callback to process start elements
113
-	*
114
-	* @access private
115
-	*/
112
+	 * XML Callback to process start elements
113
+	 *
114
+	 * @access private
115
+	 */
116 116
 	function _tag_open( &$parser, $tag, $attributes ) {
117 117
 		
118 118
 	}
119 119
 	
120 120
 	/**
121
-	* XML Callback to process CDATA elements
122
-	*
123
-	* @access private
124
-	*/
121
+	 * XML Callback to process CDATA elements
122
+	 *
123
+	 * @access private
124
+	 */
125 125
 	function _tag_cdata( &$parser, $cdata ) {
126 126
 		
127 127
 	}
128 128
 	
129 129
 	/**
130
-	* XML Callback to process end elements
131
-	*
132
-	* @access private
133
-	*/
130
+	 * XML Callback to process end elements
131
+	 *
132
+	 * @access private
133
+	 */
134 134
 	function _tag_close( &$parser, $tag ) {
135 135
 		
136 136
 	}
@@ -140,39 +140,39 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 	
142 142
 	/**
143
-	* Destroys the object
144
-	*/
143
+	 * Destroys the object
144
+	 */
145 145
 	function destroy() {
146 146
 		unset( $this );
147 147
 	}
148 148
 	
149 149
 	/**
150
-	* Checks whether the specified RDBMS is supported by the current
151
-	* database object or its ranking ancestor.
152
-	*
153
-	* @param string $platform RDBMS platform name (from ADODB platform list).
154
-	* @return boolean TRUE if RDBMS is supported; otherwise returns FALSE.
155
-	*/
150
+	 * Checks whether the specified RDBMS is supported by the current
151
+	 * database object or its ranking ancestor.
152
+	 *
153
+	 * @param string $platform RDBMS platform name (from ADODB platform list).
154
+	 * @return boolean TRUE if RDBMS is supported; otherwise returns FALSE.
155
+	 */
156 156
 	function supportedPlatform( $platform = NULL ) {
157 157
 		return is_object( $this->parent ) ? $this->parent->supportedPlatform( $platform ) : TRUE;
158 158
 	}
159 159
 	
160 160
 	/**
161
-	* Returns the prefix set by the ranking ancestor of the database object.
162
-	*
163
-	* @param string $name Prefix string.
164
-	* @return string Prefix.
165
-	*/
161
+	 * Returns the prefix set by the ranking ancestor of the database object.
162
+	 *
163
+	 * @param string $name Prefix string.
164
+	 * @return string Prefix.
165
+	 */
166 166
 	function prefix( $name = '' ) {
167 167
 		return is_object( $this->parent ) ? $this->parent->prefix( $name ) : $name;
168 168
 	}
169 169
 	
170 170
 	/**
171
-	* Extracts a field ID from the specified field.
172
-	*
173
-	* @param string $field Field.
174
-	* @return string Field ID.
175
-	*/
171
+	 * Extracts a field ID from the specified field.
172
+	 *
173
+	 * @param string $field Field.
174
+	 * @return string Field ID.
175
+	 */
176 176
 	function FieldID( $field ) {
177 177
 		return strtoupper( preg_replace( '/^`(.+)`$/', '$1', $field ) );
178 178
 	}
@@ -192,59 +192,59 @@  discard block
 block discarded – undo
192 192
 class dbTable extends dbObject {
193 193
 	
194 194
 	/**
195
-	* @var string Table name
196
-	*/
195
+	 * @var string Table name
196
+	 */
197 197
 	var $name;
198 198
 	
199 199
 	/**
200
-	* @var array Field specifier: Meta-information about each field
201
-	*/
200
+	 * @var array Field specifier: Meta-information about each field
201
+	 */
202 202
 	var $fields = array();
203 203
 	
204 204
 	/**
205
-	* @var array List of table indexes.
206
-	*/
205
+	 * @var array List of table indexes.
206
+	 */
207 207
 	var $indexes = array();
208 208
 	
209 209
 	/**
210
-	* @var array Table options: Table-level options
211
-	*/
210
+	 * @var array Table options: Table-level options
211
+	 */
212 212
 	var $opts = array();
213 213
 	
214 214
 	/**
215
-	* @var string Field index: Keeps track of which field is currently being processed
216
-	*/
215
+	 * @var string Field index: Keeps track of which field is currently being processed
216
+	 */
217 217
 	var $current_field;
218 218
 	
219 219
 	/**
220
-	* @var boolean Mark table for destruction
221
-	* @access private
222
-	*/
220
+	 * @var boolean Mark table for destruction
221
+	 * @access private
222
+	 */
223 223
 	var $drop_table;
224 224
 	
225 225
 	/**
226
-	* @var boolean Mark field for destruction (not yet implemented)
227
-	* @access private
228
-	*/
226
+	 * @var boolean Mark field for destruction (not yet implemented)
227
+	 * @access private
228
+	 */
229 229
 	var $drop_field = array();
230 230
 	
231 231
 	/**
232
-	* Iniitializes a new table object.
233
-	*
234
-	* @param string $prefix DB Object prefix
235
-	* @param array $attributes Array of table attributes.
236
-	*/
232
+	 * Iniitializes a new table object.
233
+	 *
234
+	 * @param string $prefix DB Object prefix
235
+	 * @param array $attributes Array of table attributes.
236
+	 */
237 237
 	function dbTable( &$parent, $attributes = NULL ) {
238 238
 		$this->parent =& $parent;
239 239
 		$this->name = $this->prefix($attributes['NAME']);
240 240
 	}
241 241
 	
242 242
 	/**
243
-	* XML Callback to process start elements. Elements currently 
244
-	* processed are: INDEX, DROP, FIELD, KEY, NOTNULL, AUTOINCREMENT & DEFAULT. 
245
-	*
246
-	* @access private
247
-	*/
243
+	 * XML Callback to process start elements. Elements currently 
244
+	 * processed are: INDEX, DROP, FIELD, KEY, NOTNULL, AUTOINCREMENT & DEFAULT. 
245
+	 *
246
+	 * @access private
247
+	 */
248 248
 	function _tag_open( &$parser, $tag, $attributes ) {
249 249
 		$this->currentElement = strtoupper( $tag );
250 250
 		
@@ -298,10 +298,10 @@  discard block
 block discarded – undo
298 298
 	}
299 299
 	
300 300
 	/**
301
-	* XML Callback to process CDATA elements
302
-	*
303
-	* @access private
304
-	*/
301
+	 * XML Callback to process CDATA elements
302
+	 *
303
+	 * @access private
304
+	 */
305 305
 	function _tag_cdata( &$parser, $cdata ) {
306 306
 		switch( $this->currentElement ) {
307 307
 			// Table constraint
@@ -322,10 +322,10 @@  discard block
 block discarded – undo
322 322
 	}
323 323
 	
324 324
 	/**
325
-	* XML Callback to process end elements
326
-	*
327
-	* @access private
328
-	*/
325
+	 * XML Callback to process end elements
326
+	 *
327
+	 * @access private
328
+	 */
329 329
 	function _tag_close( &$parser, $tag ) {
330 330
 		$this->currentElement = '';
331 331
 		
@@ -343,11 +343,11 @@  discard block
 block discarded – undo
343 343
 	}
344 344
 	
345 345
 	/**
346
-	* Adds an index to a table object
347
-	*
348
-	* @param array $attributes Index attributes
349
-	* @return object dbIndex object
350
-	*/
346
+	 * Adds an index to a table object
347
+	 *
348
+	 * @param array $attributes Index attributes
349
+	 * @return object dbIndex object
350
+	 */
351 351
 	function &addIndex( $attributes ) {
352 352
 		$name = strtoupper( $attributes['NAME'] );
353 353
 		$this->indexes[$name] = new dbIndex( $this, $attributes );
@@ -355,11 +355,11 @@  discard block
 block discarded – undo
355 355
 	}
356 356
 	
357 357
 	/**
358
-	* Adds data to a table object
359
-	*
360
-	* @param array $attributes Data attributes
361
-	* @return object dbData object
362
-	*/
358
+	 * Adds data to a table object
359
+	 *
360
+	 * @param array $attributes Data attributes
361
+	 * @return object dbData object
362
+	 */
363 363
 	function &addData( $attributes ) {
364 364
 		if( !isset( $this->data ) ) {
365 365
 			$this->data = new dbData( $this, $attributes );
@@ -368,34 +368,34 @@  discard block
 block discarded – undo
368 368
 	}
369 369
 	
370 370
 	/**
371
-	* Adds a field to a table object
372
-	*
373
-	* $name is the name of the table to which the field should be added. 
374
-	* $type is an ADODB datadict field type. The following field types
375
-	* are supported as of ADODB 3.40:
376
-	* 	- C:  varchar
377
-	*	- X:  CLOB (character large object) or largest varchar size
378
-	*	   if CLOB is not supported
379
-	*	- C2: Multibyte varchar
380
-	*	- X2: Multibyte CLOB
381
-	*	- B:  BLOB (binary large object)
382
-	*	- D:  Date (some databases do not support this, and we return a datetime type)
383
-	*	- T:  Datetime or Timestamp
384
-	*	- L:  Integer field suitable for storing booleans (0 or 1)
385
-	*	- I:  Integer (mapped to I4)
386
-	*	- I1: 1-byte integer
387
-	*	- I2: 2-byte integer
388
-	*	- I4: 4-byte integer
389
-	*	- I8: 8-byte integer
390
-	*	- F:  Floating point number
391
-	*	- N:  Numeric or decimal number
392
-	*
393
-	* @param string $name Name of the table to which the field will be added.
394
-	* @param string $type	ADODB datadict field type.
395
-	* @param string $size	Field size
396
-	* @param array $opts	Field options array
397
-	* @return array Field specifier array
398
-	*/
371
+	 * Adds a field to a table object
372
+	 *
373
+	 * $name is the name of the table to which the field should be added. 
374
+	 * $type is an ADODB datadict field type. The following field types
375
+	 * are supported as of ADODB 3.40:
376
+	 * 	- C:  varchar
377
+	 *	- X:  CLOB (character large object) or largest varchar size
378
+	 *	   if CLOB is not supported
379
+	 *	- C2: Multibyte varchar
380
+	 *	- X2: Multibyte CLOB
381
+	 *	- B:  BLOB (binary large object)
382
+	 *	- D:  Date (some databases do not support this, and we return a datetime type)
383
+	 *	- T:  Datetime or Timestamp
384
+	 *	- L:  Integer field suitable for storing booleans (0 or 1)
385
+	 *	- I:  Integer (mapped to I4)
386
+	 *	- I1: 1-byte integer
387
+	 *	- I2: 2-byte integer
388
+	 *	- I4: 4-byte integer
389
+	 *	- I8: 8-byte integer
390
+	 *	- F:  Floating point number
391
+	 *	- N:  Numeric or decimal number
392
+	 *
393
+	 * @param string $name Name of the table to which the field will be added.
394
+	 * @param string $type	ADODB datadict field type.
395
+	 * @param string $size	Field size
396
+	 * @param array $opts	Field options array
397
+	 * @return array Field specifier array
398
+	 */
399 399
 	function addField( $name, $type, $size = NULL, $opts = NULL ) {
400 400
 		$field_id = $this->FieldID( $name );
401 401
 		
@@ -420,16 +420,16 @@  discard block
 block discarded – undo
420 420
 	}
421 421
 	
422 422
 	/**
423
-	* Adds a field option to the current field specifier
424
-	*
425
-	* This method adds a field option allowed by the ADOdb datadict 
426
-	* and appends it to the given field.
427
-	*
428
-	* @param string $field	Field name
429
-	* @param string $opt ADOdb field option
430
-	* @param mixed $value Field option value
431
-	* @return array Field specifier array
432
-	*/
423
+	 * Adds a field option to the current field specifier
424
+	 *
425
+	 * This method adds a field option allowed by the ADOdb datadict 
426
+	 * and appends it to the given field.
427
+	 *
428
+	 * @param string $field	Field name
429
+	 * @param string $opt ADOdb field option
430
+	 * @param mixed $value Field option value
431
+	 * @return array Field specifier array
432
+	 */
433 433
 	function addFieldOpt( $field, $opt, $value = NULL ) {
434 434
 		if( !isset( $value ) ) {
435 435
 			$this->fields[$this->FieldID( $field )]['OPTS'][] = $opt;
@@ -440,14 +440,14 @@  discard block
 block discarded – undo
440 440
 	}
441 441
 	
442 442
 	/**
443
-	* Adds an option to the table
444
-	*
445
-	* This method takes a comma-separated list of table-level options
446
-	* and appends them to the table object.
447
-	*
448
-	* @param string $opt Table option
449
-	* @return array Options
450
-	*/
443
+	 * Adds an option to the table
444
+	 *
445
+	 * This method takes a comma-separated list of table-level options
446
+	 * and appends them to the table object.
447
+	 *
448
+	 * @param string $opt Table option
449
+	 * @return array Options
450
+	 */
451 451
 	function addTableOpt( $opt ) {
452 452
 		$this->opts[] = $opt;
453 453
 		
@@ -455,11 +455,11 @@  discard block
 block discarded – undo
455 455
 	}
456 456
 	
457 457
 	/**
458
-	* Generates the SQL that will create the table in the database
459
-	*
460
-	* @param object $xmls adoSchema object
461
-	* @return array Array containing table creation SQL
462
-	*/
458
+	 * Generates the SQL that will create the table in the database
459
+	 *
460
+	 * @param object $xmls adoSchema object
461
+	 * @return array Array containing table creation SQL
462
+	 */
463 463
 	function create( &$xmls ) {
464 464
 		$sql = array();
465 465
 		
@@ -567,8 +567,8 @@  discard block
 block discarded – undo
567 567
 	}
568 568
 	
569 569
 	/**
570
-	* Marks a field or table for destruction
571
-	*/
570
+	 * Marks a field or table for destruction
571
+	 */
572 572
 	function drop() {
573 573
 		if( isset( $this->current_field ) ) {
574 574
 			// Drop the current field
@@ -598,34 +598,34 @@  discard block
 block discarded – undo
598 598
 class dbIndex extends dbObject {
599 599
 	
600 600
 	/**
601
-	* @var string	Index name
602
-	*/
601
+	 * @var string	Index name
602
+	 */
603 603
 	var $name;
604 604
 	
605 605
 	/**
606
-	* @var array	Index options: Index-level options
607
-	*/
606
+	 * @var array	Index options: Index-level options
607
+	 */
608 608
 	var $opts = array();
609 609
 	
610 610
 	/**
611
-	* @var array	Indexed fields: Table columns included in this index
612
-	*/
611
+	 * @var array	Indexed fields: Table columns included in this index
612
+	 */
613 613
 	var $columns = array();
614 614
 	
615 615
 	/**
616
-	* @var boolean Mark index for destruction
617
-	* @access private
618
-	*/
616
+	 * @var boolean Mark index for destruction
617
+	 * @access private
618
+	 */
619 619
 	var $drop = FALSE;
620 620
 	
621 621
 	/**
622
-	* Initializes the new dbIndex object.
623
-	*
624
-	* @param object $parent Parent object
625
-	* @param array $attributes Attributes
626
-	*
627
-	* @internal
628
-	*/
622
+	 * Initializes the new dbIndex object.
623
+	 *
624
+	 * @param object $parent Parent object
625
+	 * @param array $attributes Attributes
626
+	 *
627
+	 * @internal
628
+	 */
629 629
 	function dbIndex( &$parent, $attributes = NULL ) {
630 630
 		$this->parent =& $parent;
631 631
 		
@@ -633,13 +633,13 @@  discard block
 block discarded – undo
633 633
 	}
634 634
 	
635 635
 	/**
636
-	* XML Callback to process start elements
637
-	*
638
-	* Processes XML opening tags. 
639
-	* Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH. 
640
-	*
641
-	* @access private
642
-	*/
636
+	 * XML Callback to process start elements
637
+	 *
638
+	 * Processes XML opening tags. 
639
+	 * Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH. 
640
+	 *
641
+	 * @access private
642
+	 */
643 643
 	function _tag_open( &$parser, $tag, $attributes ) {
644 644
 		$this->currentElement = strtoupper( $tag );
645 645
 		
@@ -661,12 +661,12 @@  discard block
 block discarded – undo
661 661
 	}
662 662
 	
663 663
 	/**
664
-	* XML Callback to process CDATA elements
665
-	*
666
-	* Processes XML cdata.
667
-	*
668
-	* @access private
669
-	*/
664
+	 * XML Callback to process CDATA elements
665
+	 *
666
+	 * Processes XML cdata.
667
+	 *
668
+	 * @access private
669
+	 */
670 670
 	function _tag_cdata( &$parser, $cdata ) {
671 671
 		switch( $this->currentElement ) {
672 672
 			// Index field name
@@ -679,10 +679,10 @@  discard block
 block discarded – undo
679 679
 	}
680 680
 	
681 681
 	/**
682
-	* XML Callback to process end elements
683
-	*
684
-	* @access private
685
-	*/
682
+	 * XML Callback to process end elements
683
+	 *
684
+	 * @access private
685
+	 */
686 686
 	function _tag_close( &$parser, $tag ) {
687 687
 		$this->currentElement = '';
688 688
 		
@@ -694,11 +694,11 @@  discard block
 block discarded – undo
694 694
 	}
695 695
 	
696 696
 	/**
697
-	* Adds a field to the index
698
-	*
699
-	* @param string $name Field name
700
-	* @return string Field list
701
-	*/
697
+	 * Adds a field to the index
698
+	 *
699
+	 * @param string $name Field name
700
+	 * @return string Field list
701
+	 */
702 702
 	function addField( $name ) {
703 703
 		$this->columns[$this->FieldID( $name )] = $name;
704 704
 		
@@ -707,11 +707,11 @@  discard block
 block discarded – undo
707 707
 	}
708 708
 	
709 709
 	/**
710
-	* Adds options to the index
711
-	*
712
-	* @param string $opt Comma-separated list of index options.
713
-	* @return string Option list
714
-	*/
710
+	 * Adds options to the index
711
+	 *
712
+	 * @param string $opt Comma-separated list of index options.
713
+	 * @return string Option list
714
+	 */
715 715
 	function addIndexOpt( $opt ) {
716 716
 		$this->opts[] = $opt;
717 717
 		
@@ -720,11 +720,11 @@  discard block
 block discarded – undo
720 720
 	}
721 721
 	
722 722
 	/**
723
-	* Generates the SQL that will create the index in the database
724
-	*
725
-	* @param object $xmls adoSchema object
726
-	* @return array Array containing index creation SQL
727
-	*/
723
+	 * Generates the SQL that will create the index in the database
724
+	 *
725
+	 * @param object $xmls adoSchema object
726
+	 * @return array Array containing index creation SQL
727
+	 */
728 728
 	function create( &$xmls ) {
729 729
 		if( $this->drop ) {
730 730
 			return NULL;
@@ -741,8 +741,8 @@  discard block
 block discarded – undo
741 741
 	}
742 742
 	
743 743
 	/**
744
-	* Marks an index for destruction
745
-	*/
744
+	 * Marks an index for destruction
745
+	 */
746 746
 	function drop() {
747 747
 		$this->drop = TRUE;
748 748
 	}
@@ -763,25 +763,25 @@  discard block
 block discarded – undo
763 763
 	var $row;
764 764
 	
765 765
 	/**
766
-	* Initializes the new dbIndex object.
767
-	*
768
-	* @param object $parent Parent object
769
-	* @param array $attributes Attributes
770
-	*
771
-	* @internal
772
-	*/
766
+	 * Initializes the new dbIndex object.
767
+	 *
768
+	 * @param object $parent Parent object
769
+	 * @param array $attributes Attributes
770
+	 *
771
+	 * @internal
772
+	 */
773 773
 	function dbData( &$parent, $attributes = NULL ) {
774 774
 		$this->parent =& $parent;
775 775
 	}
776 776
 	
777 777
 	/**
778
-	* XML Callback to process start elements
779
-	*
780
-	* Processes XML opening tags. 
781
-	* Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH. 
782
-	*
783
-	* @access private
784
-	*/
778
+	 * XML Callback to process start elements
779
+	 *
780
+	 * Processes XML opening tags. 
781
+	 * Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH. 
782
+	 *
783
+	 * @access private
784
+	 */
785 785
 	function _tag_open( &$parser, $tag, $attributes ) {
786 786
 		$this->currentElement = strtoupper( $tag );
787 787
 		
@@ -798,12 +798,12 @@  discard block
 block discarded – undo
798 798
 	}
799 799
 	
800 800
 	/**
801
-	* XML Callback to process CDATA elements
802
-	*
803
-	* Processes XML cdata.
804
-	*
805
-	* @access private
806
-	*/
801
+	 * XML Callback to process CDATA elements
802
+	 *
803
+	 * Processes XML cdata.
804
+	 *
805
+	 * @access private
806
+	 */
807 807
 	function _tag_cdata( &$parser, $cdata ) {
808 808
 		switch( $this->currentElement ) {
809 809
 			// Index field name
@@ -816,10 +816,10 @@  discard block
 block discarded – undo
816 816
 	}
817 817
 	
818 818
 	/**
819
-	* XML Callback to process end elements
820
-	*
821
-	* @access private
822
-	*/
819
+	 * XML Callback to process end elements
820
+	 *
821
+	 * @access private
822
+	 */
823 823
 	function _tag_close( &$parser, $tag ) {
824 824
 		$this->currentElement = '';
825 825
 		
@@ -831,11 +831,11 @@  discard block
 block discarded – undo
831 831
 	}
832 832
 	
833 833
 	/**
834
-	* Adds a field to the index
835
-	*
836
-	* @param string $name Field name
837
-	* @return string Field list
838
-	*/
834
+	 * Adds a field to the index
835
+	 *
836
+	 * @param string $name Field name
837
+	 * @return string Field list
838
+	 */
839 839
 	function addField( $attributes ) {
840 840
 		if( isset( $attributes['NAME'] ) ) {
841 841
 			$name = $attributes['NAME'];
@@ -848,11 +848,11 @@  discard block
 block discarded – undo
848 848
 	}
849 849
 	
850 850
 	/**
851
-	* Adds options to the index
852
-	*
853
-	* @param string $opt Comma-separated list of index options.
854
-	* @return string Option list
855
-	*/
851
+	 * Adds options to the index
852
+	 *
853
+	 * @param string $opt Comma-separated list of index options.
854
+	 * @return string Option list
855
+	 */
856 856
 	function addData( $cdata ) {
857 857
 		if( !isset( $this->data[$this->row] ) ) {
858 858
 			$this->data[$this->row] = array();
@@ -866,11 +866,11 @@  discard block
 block discarded – undo
866 866
 	}
867 867
 	
868 868
 	/**
869
-	* Generates the SQL that will create the index in the database
870
-	*
871
-	* @param object $xmls adoSchema object
872
-	* @return array Array containing index creation SQL
873
-	*/
869
+	 * Generates the SQL that will create the index in the database
870
+	 *
871
+	 * @param object $xmls adoSchema object
872
+	 * @return array Array containing index creation SQL
873
+	 */
874 874
 	function create( &$xmls ) {
875 875
 		$table = $xmls->dict->TableName($this->parent->name);
876 876
 		$table_field_count = count($this->parent->fields);
@@ -944,31 +944,31 @@  discard block
 block discarded – undo
944 944
 class dbQuerySet extends dbObject {
945 945
 	
946 946
 	/**
947
-	* @var array	List of SQL queries
948
-	*/
947
+	 * @var array	List of SQL queries
948
+	 */
949 949
 	var $queries = array();
950 950
 	
951 951
 	/**
952
-	* @var string	String used to build of a query line by line
953
-	*/
952
+	 * @var string	String used to build of a query line by line
953
+	 */
954 954
 	var $query;
955 955
 	
956 956
 	/**
957
-	* @var string	Query prefix key
958
-	*/
957
+	 * @var string	Query prefix key
958
+	 */
959 959
 	var $prefixKey = '';
960 960
 	
961 961
 	/**
962
-	* @var boolean	Auto prefix enable (TRUE)
963
-	*/
962
+	 * @var boolean	Auto prefix enable (TRUE)
963
+	 */
964 964
 	var $prefixMethod = 'AUTO';
965 965
 	
966 966
 	/**
967
-	* Initializes the query set.
968
-	*
969
-	* @param object $parent Parent object
970
-	* @param array $attributes Attributes
971
-	*/
967
+	 * Initializes the query set.
968
+	 *
969
+	 * @param object $parent Parent object
970
+	 * @param array $attributes Attributes
971
+	 */
972 972
 	function dbQuerySet( &$parent, $attributes = NULL ) {
973 973
 		$this->parent =& $parent;
974 974
 			
@@ -994,11 +994,11 @@  discard block
 block discarded – undo
994 994
 	}
995 995
 	
996 996
 	/**
997
-	* XML Callback to process start elements. Elements currently 
998
-	* processed are: QUERY. 
999
-	*
1000
-	* @access private
1001
-	*/
997
+	 * XML Callback to process start elements. Elements currently 
998
+	 * processed are: QUERY. 
999
+	 *
1000
+	 * @access private
1001
+	 */
1002 1002
 	function _tag_open( &$parser, $tag, $attributes ) {
1003 1003
 		$this->currentElement = strtoupper( $tag );
1004 1004
 		
@@ -1019,8 +1019,8 @@  discard block
 block discarded – undo
1019 1019
 	}
1020 1020
 	
1021 1021
 	/**
1022
-	* XML Callback to process CDATA elements
1023
-	*/
1022
+	 * XML Callback to process CDATA elements
1023
+	 */
1024 1024
 	function _tag_cdata( &$parser, $cdata ) {
1025 1025
 		switch( $this->currentElement ) {
1026 1026
 			// Line of queryset SQL data
@@ -1033,10 +1033,10 @@  discard block
 block discarded – undo
1033 1033
 	}
1034 1034
 	
1035 1035
 	/**
1036
-	* XML Callback to process end elements
1037
-	*
1038
-	* @access private
1039
-	*/
1036
+	 * XML Callback to process end elements
1037
+	 *
1038
+	 * @access private
1039
+	 */
1040 1040
 	function _tag_close( &$parser, $tag ) {
1041 1041
 		$this->currentElement = '';
1042 1042
 		
@@ -1056,10 +1056,10 @@  discard block
 block discarded – undo
1056 1056
 	}
1057 1057
 	
1058 1058
 	/**
1059
-	* Re-initializes the query.
1060
-	*
1061
-	* @return boolean TRUE
1062
-	*/
1059
+	 * Re-initializes the query.
1060
+	 *
1061
+	 * @return boolean TRUE
1062
+	 */
1063 1063
 	function newQuery() {
1064 1064
 		$this->query = '';
1065 1065
 		
@@ -1067,10 +1067,10 @@  discard block
 block discarded – undo
1067 1067
 	}
1068 1068
 	
1069 1069
 	/**
1070
-	* Discards the existing query.
1071
-	*
1072
-	* @return boolean TRUE
1073
-	*/
1070
+	 * Discards the existing query.
1071
+	 *
1072
+	 * @return boolean TRUE
1073
+	 */
1074 1074
 	function discardQuery() {
1075 1075
 		unset( $this->query );
1076 1076
 		
@@ -1078,11 +1078,11 @@  discard block
 block discarded – undo
1078 1078
 	}
1079 1079
 	
1080 1080
 	/** 
1081
-	* Appends a line to a query that is being built line by line
1082
-	*
1083
-	* @param string $data Line of SQL data or NULL to initialize a new query
1084
-	* @return string SQL query string.
1085
-	*/
1081
+	 * Appends a line to a query that is being built line by line
1082
+	 *
1083
+	 * @param string $data Line of SQL data or NULL to initialize a new query
1084
+	 * @return string SQL query string.
1085
+	 */
1086 1086
 	function buildQuery( $sql = NULL ) {
1087 1087
 		if( !isset( $this->query ) OR empty( $sql ) ) {
1088 1088
 			return FALSE;
@@ -1094,10 +1094,10 @@  discard block
 block discarded – undo
1094 1094
 	}
1095 1095
 	
1096 1096
 	/**
1097
-	* Adds a completed query to the query list
1098
-	*
1099
-	* @return string	SQL of added query
1100
-	*/
1097
+	 * Adds a completed query to the query list
1098
+	 *
1099
+	 * @return string	SQL of added query
1100
+	 */
1101 1101
 	function addQuery() {
1102 1102
 		if( !isset( $this->query ) ) {
1103 1103
 			return FALSE;
@@ -1111,11 +1111,11 @@  discard block
 block discarded – undo
1111 1111
 	}
1112 1112
 	
1113 1113
 	/**
1114
-	* Creates and returns the current query set
1115
-	*
1116
-	* @param object $xmls adoSchema object
1117
-	* @return array Query set
1118
-	*/
1114
+	 * Creates and returns the current query set
1115
+	 *
1116
+	 * @param object $xmls adoSchema object
1117
+	 * @return array Query set
1118
+	 */
1119 1119
 	function create( &$xmls ) {
1120 1120
 		foreach( $this->queries as $id => $query ) {
1121 1121
 			switch( $this->prefixMethod ) {
@@ -1151,13 +1151,13 @@  discard block
 block discarded – undo
1151 1151
 	}
1152 1152
 	
1153 1153
 	/**
1154
-	* Rebuilds the query with the prefix attached to any objects
1155
-	*
1156
-	* @param string $regex Regex used to add prefix
1157
-	* @param string $query SQL query string
1158
-	* @param string $prefix Prefix to be appended to tables, indices, etc.
1159
-	* @return string Prefixed SQL query string.
1160
-	*/
1154
+	 * Rebuilds the query with the prefix attached to any objects
1155
+	 *
1156
+	 * @param string $regex Regex used to add prefix
1157
+	 * @param string $query SQL query string
1158
+	 * @param string $prefix Prefix to be appended to tables, indices, etc.
1159
+	 * @return string Prefixed SQL query string.
1160
+	 */
1161 1161
 	function prefixQuery( $regex, $query, $prefix = NULL ) {
1162 1162
 		if( !isset( $prefix ) ) {
1163 1163
 			return $query;
@@ -1202,89 +1202,89 @@  discard block
 block discarded – undo
1202 1202
 class adoSchema {
1203 1203
 	
1204 1204
 	/**
1205
-	* @var array	Array containing SQL queries to generate all objects
1206
-	* @access private
1207
-	*/
1205
+	 * @var array	Array containing SQL queries to generate all objects
1206
+	 * @access private
1207
+	 */
1208 1208
 	var $sqlArray;
1209 1209
 	
1210 1210
 	/**
1211
-	* @var object	ADOdb connection object
1212
-	* @access private
1213
-	*/
1211
+	 * @var object	ADOdb connection object
1212
+	 * @access private
1213
+	 */
1214 1214
 	var $db;
1215 1215
 	
1216 1216
 	/**
1217
-	* @var object	ADOdb Data Dictionary
1218
-	* @access private
1219
-	*/
1217
+	 * @var object	ADOdb Data Dictionary
1218
+	 * @access private
1219
+	 */
1220 1220
 	var $dict;
1221 1221
 	
1222 1222
 	/**
1223
-	* @var string Current XML element
1224
-	* @access private
1225
-	*/
1223
+	 * @var string Current XML element
1224
+	 * @access private
1225
+	 */
1226 1226
 	var $currentElement = '';
1227 1227
 	
1228 1228
 	/**
1229
-	* @var string If set (to 'ALTER' or 'REPLACE'), upgrade an existing database
1230
-	* @access private
1231
-	*/
1229
+	 * @var string If set (to 'ALTER' or 'REPLACE'), upgrade an existing database
1230
+	 * @access private
1231
+	 */
1232 1232
 	var $upgrade = '';
1233 1233
 	
1234 1234
 	/**
1235
-	* @var string Optional object prefix
1236
-	* @access private
1237
-	*/
1235
+	 * @var string Optional object prefix
1236
+	 * @access private
1237
+	 */
1238 1238
 	var $objectPrefix = '';
1239 1239
 	
1240 1240
 	/**
1241
-	* @var long	Original Magic Quotes Runtime value
1242
-	* @access private
1243
-	*/
1241
+	 * @var long	Original Magic Quotes Runtime value
1242
+	 * @access private
1243
+	 */
1244 1244
 	var $mgq;
1245 1245
 	
1246 1246
 	/**
1247
-	* @var long	System debug
1248
-	* @access private
1249
-	*/
1247
+	 * @var long	System debug
1248
+	 * @access private
1249
+	 */
1250 1250
 	var $debug;
1251 1251
 	
1252 1252
 	/**
1253
-	* @var string Regular expression to find schema version
1254
-	* @access private
1255
-	*/
1253
+	 * @var string Regular expression to find schema version
1254
+	 * @access private
1255
+	 */
1256 1256
 	var $versionRegex = '/<schema.*?( version="([^"]*)")?.*?>/';
1257 1257
 	
1258 1258
 	/**
1259
-	* @var string Current schema version
1260
-	* @access private
1261
-	*/
1259
+	 * @var string Current schema version
1260
+	 * @access private
1261
+	 */
1262 1262
 	var $schemaVersion;
1263 1263
 	
1264 1264
 	/**
1265
-	* @var int	Success of last Schema execution
1266
-	*/
1265
+	 * @var int	Success of last Schema execution
1266
+	 */
1267 1267
 	var $success;
1268 1268
 	
1269 1269
 	/**
1270
-	* @var bool	Execute SQL inline as it is generated
1271
-	*/
1270
+	 * @var bool	Execute SQL inline as it is generated
1271
+	 */
1272 1272
 	var $executeInline;
1273 1273
 	
1274 1274
 	/**
1275
-	* @var bool	Continue SQL execution if errors occur
1276
-	*/
1275
+	 * @var bool	Continue SQL execution if errors occur
1276
+	 */
1277 1277
 	var $continueOnError;
1278 1278
 	
1279 1279
 	/**
1280
-	* Creates an adoSchema object
1281
-	*
1282
-	* Creating an adoSchema object is the first step in processing an XML schema.
1283
-	* The only parameter is an ADOdb database connection object, which must already
1284
-	* have been created.
1285
-	*
1286
-	* @param object $db ADOdb database connection object.
1287
-	*/
1280
+	 * Creates an adoSchema object
1281
+	 *
1282
+	 * Creating an adoSchema object is the first step in processing an XML schema.
1283
+	 * The only parameter is an ADOdb database connection object, which must already
1284
+	 * have been created.
1285
+	 *
1286
+	 * @param object $db ADOdb database connection object.
1287
+	 */
1288 1288
 	function adoSchema( &$db ) {
1289 1289
 		// Initialize the environment
1290 1290
 		$this->mgq = get_magic_quotes_runtime();
@@ -1301,21 +1301,21 @@  discard block
 block discarded – undo
1301 1301
 	}
1302 1302
 	
1303 1303
 	/**
1304
-	* Sets the method to be used for upgrading an existing database
1305
-	*
1306
-	* Use this method to specify how existing database objects should be upgraded.
1307
-	* The method option can be set to ALTER, REPLACE, BEST, or NONE. ALTER attempts to
1308
-	* alter each database object directly, REPLACE attempts to rebuild each object
1309
-	* from scratch, BEST attempts to determine the best upgrade method for each
1310
-	* object, and NONE disables upgrading.
1311
-	*
1312
-	* This method is not yet used by AXMLS, but exists for backward compatibility.
1313
-	* The ALTER method is automatically assumed when the adoSchema object is
1314
-	* instantiated; other upgrade methods are not currently supported.
1315
-	*
1316
-	* @param string $method Upgrade method (ALTER|REPLACE|BEST|NONE)
1317
-	* @returns string Upgrade method used
1318
-	*/
1304
+	 * Sets the method to be used for upgrading an existing database
1305
+	 *
1306
+	 * Use this method to specify how existing database objects should be upgraded.
1307
+	 * The method option can be set to ALTER, REPLACE, BEST, or NONE. ALTER attempts to
1308
+	 * alter each database object directly, REPLACE attempts to rebuild each object
1309
+	 * from scratch, BEST attempts to determine the best upgrade method for each
1310
+	 * object, and NONE disables upgrading.
1311
+	 *
1312
+	 * This method is not yet used by AXMLS, but exists for backward compatibility.
1313
+	 * The ALTER method is automatically assumed when the adoSchema object is
1314
+	 * instantiated; other upgrade methods are not currently supported.
1315
+	 *
1316
+	 * @param string $method Upgrade method (ALTER|REPLACE|BEST|NONE)
1317
+	 * @returns string Upgrade method used
1318
+	 */
1319 1319
 	function SetUpgradeMethod( $method = '' ) {
1320 1320
 		if( !is_string( $method ) ) {
1321 1321
 			return FALSE;
@@ -1346,18 +1346,18 @@  discard block
 block discarded – undo
1346 1346
 	}
1347 1347
 	
1348 1348
 	/**
1349
-	* Enables/disables inline SQL execution.
1350
-	*
1351
-	* Call this method to enable or disable inline execution of the schema. If the mode is set to TRUE (inline execution),
1352
-	* AXMLS applies the SQL to the database immediately as each schema entity is parsed. If the mode
1353
-	* is set to FALSE (post execution), AXMLS parses the entire schema and you will need to call adoSchema::ExecuteSchema()
1354
-	* to apply the schema to the database.
1355
-	*
1356
-	* @param bool $mode execute
1357
-	* @return bool current execution mode
1358
-	*
1359
-	* @see ParseSchema(), ExecuteSchema()
1360
-	*/
1349
+	 * Enables/disables inline SQL execution.
1350
+	 *
1351
+	 * Call this method to enable or disable inline execution of the schema. If the mode is set to TRUE (inline execution),
1352
+	 * AXMLS applies the SQL to the database immediately as each schema entity is parsed. If the mode
1353
+	 * is set to FALSE (post execution), AXMLS parses the entire schema and you will need to call adoSchema::ExecuteSchema()
1354
+	 * to apply the schema to the database.
1355
+	 *
1356
+	 * @param bool $mode execute
1357
+	 * @return bool current execution mode
1358
+	 *
1359
+	 * @see ParseSchema(), ExecuteSchema()
1360
+	 */
1361 1361
 	function ExecuteInline( $mode = NULL ) {
1362 1362
 		if( is_bool( $mode ) ) {
1363 1363
 			$this->executeInline = $mode;
@@ -1367,18 +1367,18 @@  discard block
 block discarded – undo
1367 1367
 	}
1368 1368
 	
1369 1369
 	/**
1370
-	* Enables/disables SQL continue on error.
1371
-	*
1372
-	* Call this method to enable or disable continuation of SQL execution if an error occurs.
1373
-	* If the mode is set to TRUE (continue), AXMLS will continue to apply SQL to the database, even if an error occurs.
1374
-	* If the mode is set to FALSE (halt), AXMLS will halt execution of generated sql if an error occurs, though parsing
1375
-	* of the schema will continue.
1376
-	*
1377
-	* @param bool $mode execute
1378
-	* @return bool current continueOnError mode
1379
-	*
1380
-	* @see addSQL(), ExecuteSchema()
1381
-	*/
1370
+	 * Enables/disables SQL continue on error.
1371
+	 *
1372
+	 * Call this method to enable or disable continuation of SQL execution if an error occurs.
1373
+	 * If the mode is set to TRUE (continue), AXMLS will continue to apply SQL to the database, even if an error occurs.
1374
+	 * If the mode is set to FALSE (halt), AXMLS will halt execution of generated sql if an error occurs, though parsing
1375
+	 * of the schema will continue.
1376
+	 *
1377
+	 * @param bool $mode execute
1378
+	 * @return bool current continueOnError mode
1379
+	 *
1380
+	 * @see addSQL(), ExecuteSchema()
1381
+	 */
1382 1382
 	function ContinueOnError( $mode = NULL ) {
1383 1383
 		if( is_bool( $mode ) ) {
1384 1384
 			$this->continueOnError = $mode;
@@ -1388,33 +1388,33 @@  discard block
 block discarded – undo
1388 1388
 	}
1389 1389
 	
1390 1390
 	/**
1391
-	* Loads an XML schema from a file and converts it to SQL.
1392
-	*
1393
-	* Call this method to load the specified schema (see the DTD for the proper format) from
1394
-	* the filesystem and generate the SQL necessary to create the database described. 
1395
-	* @see ParseSchemaString()
1396
-	*
1397
-	* @param string $file Name of XML schema file.
1398
-	* @param bool $returnSchema Return schema rather than parsing.
1399
-	* @return array Array of SQL queries, ready to execute
1400
-	*/
1391
+	 * Loads an XML schema from a file and converts it to SQL.
1392
+	 *
1393
+	 * Call this method to load the specified schema (see the DTD for the proper format) from
1394
+	 * the filesystem and generate the SQL necessary to create the database described. 
1395
+	 * @see ParseSchemaString()
1396
+	 *
1397
+	 * @param string $file Name of XML schema file.
1398
+	 * @param bool $returnSchema Return schema rather than parsing.
1399
+	 * @return array Array of SQL queries, ready to execute
1400
+	 */
1401 1401
 	function ParseSchema( $filename, $returnSchema = FALSE ) {
1402 1402
 		return $this->ParseSchemaString( $this->ConvertSchemaFile( $filename ), $returnSchema );
1403 1403
 	}
1404 1404
 	
1405 1405
 	/**
1406
-	* Loads an XML schema from a file and converts it to SQL.
1407
-	*
1408
-	* Call this method to load the specified schema from a file (see the DTD for the proper format) 
1409
-	* and generate the SQL necessary to create the database described by the schema.
1410
-	*
1411
-	* @param string $file Name of XML schema file.
1412
-	* @param bool $returnSchema Return schema rather than parsing.
1413
-	* @return array Array of SQL queries, ready to execute.
1414
-	*
1415
-	* @deprecated Replaced by adoSchema::ParseSchema() and adoSchema::ParseSchemaString()
1416
-	* @see ParseSchema(), ParseSchemaString()
1417
-	*/
1406
+	 * Loads an XML schema from a file and converts it to SQL.
1407
+	 *
1408
+	 * Call this method to load the specified schema from a file (see the DTD for the proper format) 
1409
+	 * and generate the SQL necessary to create the database described by the schema.
1410
+	 *
1411
+	 * @param string $file Name of XML schema file.
1412
+	 * @param bool $returnSchema Return schema rather than parsing.
1413
+	 * @return array Array of SQL queries, ready to execute.
1414
+	 *
1415
+	 * @deprecated Replaced by adoSchema::ParseSchema() and adoSchema::ParseSchemaString()
1416
+	 * @see ParseSchema(), ParseSchemaString()
1417
+	 */
1418 1418
 	function ParseSchemaFile( $filename, $returnSchema = FALSE ) {
1419 1419
 		// Open the file
1420 1420
 		if( !($fp = fopen( $filename, 'r' )) ) {
@@ -1453,16 +1453,16 @@  discard block
 block discarded – undo
1453 1453
 	}
1454 1454
 	
1455 1455
 	/**
1456
-	* Converts an XML schema string to SQL.
1457
-	*
1458
-	* Call this method to parse a string containing an XML schema (see the DTD for the proper format)
1459
-	* and generate the SQL necessary to create the database described by the schema. 
1460
-	* @see ParseSchema()
1461
-	*
1462
-	* @param string $xmlstring XML schema string.
1463
-	* @param bool $returnSchema Return schema rather than parsing.
1464
-	* @return array Array of SQL queries, ready to execute.
1465
-	*/
1456
+	 * Converts an XML schema string to SQL.
1457
+	 *
1458
+	 * Call this method to parse a string containing an XML schema (see the DTD for the proper format)
1459
+	 * and generate the SQL necessary to create the database described by the schema. 
1460
+	 * @see ParseSchema()
1461
+	 *
1462
+	 * @param string $xmlstring XML schema string.
1463
+	 * @param bool $returnSchema Return schema rather than parsing.
1464
+	 * @return array Array of SQL queries, ready to execute.
1465
+	 */
1466 1466
 	function ParseSchemaString( $xmlstring, $returnSchema = FALSE ) {
1467 1467
 		if( !is_string( $xmlstring ) OR empty( $xmlstring ) ) {
1468 1468
 			return FALSE;
@@ -1496,31 +1496,31 @@  discard block
 block discarded – undo
1496 1496
 	}
1497 1497
 	
1498 1498
 	/**
1499
-	* Loads an XML schema from a file and converts it to uninstallation SQL.
1500
-	*
1501
-	* Call this method to load the specified schema (see the DTD for the proper format) from
1502
-	* the filesystem and generate the SQL necessary to remove the database described.
1503
-	* @see RemoveSchemaString()
1504
-	*
1505
-	* @param string $file Name of XML schema file.
1506
-	* @param bool $returnSchema Return schema rather than parsing.
1507
-	* @return array Array of SQL queries, ready to execute
1508
-	*/
1499
+	 * Loads an XML schema from a file and converts it to uninstallation SQL.
1500
+	 *
1501
+	 * Call this method to load the specified schema (see the DTD for the proper format) from
1502
+	 * the filesystem and generate the SQL necessary to remove the database described.
1503
+	 * @see RemoveSchemaString()
1504
+	 *
1505
+	 * @param string $file Name of XML schema file.
1506
+	 * @param bool $returnSchema Return schema rather than parsing.
1507
+	 * @return array Array of SQL queries, ready to execute
1508
+	 */
1509 1509
 	function RemoveSchema( $filename, $returnSchema = FALSE ) {
1510 1510
 		return $this->RemoveSchemaString( $this->ConvertSchemaFile( $filename ), $returnSchema );
1511 1511
 	}
1512 1512
 	
1513 1513
 	/**
1514
-	* Converts an XML schema string to uninstallation SQL.
1515
-	*
1516
-	* Call this method to parse a string containing an XML schema (see the DTD for the proper format)
1517
-	* and generate the SQL necessary to uninstall the database described by the schema. 
1518
-	* @see RemoveSchema()
1519
-	*
1520
-	* @param string $schema XML schema string.
1521
-	* @param bool $returnSchema Return schema rather than parsing.
1522
-	* @return array Array of SQL queries, ready to execute.
1523
-	*/
1514
+	 * Converts an XML schema string to uninstallation SQL.
1515
+	 *
1516
+	 * Call this method to parse a string containing an XML schema (see the DTD for the proper format)
1517
+	 * and generate the SQL necessary to uninstall the database described by the schema. 
1518
+	 * @see RemoveSchema()
1519
+	 *
1520
+	 * @param string $schema XML schema string.
1521
+	 * @param bool $returnSchema Return schema rather than parsing.
1522
+	 * @return array Array of SQL queries, ready to execute.
1523
+	 */
1524 1524
 	function RemoveSchemaString( $schema, $returnSchema = FALSE ) {
1525 1525
 		
1526 1526
 		// grab current version
@@ -1532,18 +1532,18 @@  discard block
 block discarded – undo
1532 1532
 	}
1533 1533
 	
1534 1534
 	/**
1535
-	* Applies the current XML schema to the database (post execution).
1536
-	*
1537
-	* Call this method to apply the current schema (generally created by calling 
1538
-	* ParseSchema() or ParseSchemaString() ) to the database (creating the tables, indexes, 
1539
-	* and executing other SQL specified in the schema) after parsing.
1540
-	* @see ParseSchema(), ParseSchemaString(), ExecuteInline()
1541
-	*
1542
-	* @param array $sqlArray Array of SQL statements that will be applied rather than
1543
-	*		the current schema.
1544
-	* @param boolean $continueOnErr Continue to apply the schema even if an error occurs.
1545
-	* @returns integer 0 if failure, 1 if errors, 2 if successful.
1546
-	*/
1535
+	 * Applies the current XML schema to the database (post execution).
1536
+	 *
1537
+	 * Call this method to apply the current schema (generally created by calling 
1538
+	 * ParseSchema() or ParseSchemaString() ) to the database (creating the tables, indexes, 
1539
+	 * and executing other SQL specified in the schema) after parsing.
1540
+	 * @see ParseSchema(), ParseSchemaString(), ExecuteInline()
1541
+	 *
1542
+	 * @param array $sqlArray Array of SQL statements that will be applied rather than
1543
+	 *		the current schema.
1544
+	 * @param boolean $continueOnErr Continue to apply the schema even if an error occurs.
1545
+	 * @returns integer 0 if failure, 1 if errors, 2 if successful.
1546
+	 */
1547 1547
 	function ExecuteSchema( $sqlArray = NULL, $continueOnErr =  NULL ) {
1548 1548
 		if( !is_bool( $continueOnErr ) ) {
1549 1549
 			$continueOnErr = $this->ContinueOnError();
@@ -1563,27 +1563,27 @@  discard block
 block discarded – undo
1563 1563
 	}
1564 1564
 	
1565 1565
 	/**
1566
-	* Returns the current SQL array. 
1567
-	*
1568
-	* Call this method to fetch the array of SQL queries resulting from 
1569
-	* ParseSchema() or ParseSchemaString(). 
1570
-	*
1571
-	* @param string $format Format: HTML, TEXT, or NONE (PHP array)
1572
-	* @return array Array of SQL statements or FALSE if an error occurs
1573
-	*/
1566
+	 * Returns the current SQL array. 
1567
+	 *
1568
+	 * Call this method to fetch the array of SQL queries resulting from 
1569
+	 * ParseSchema() or ParseSchemaString(). 
1570
+	 *
1571
+	 * @param string $format Format: HTML, TEXT, or NONE (PHP array)
1572
+	 * @return array Array of SQL statements or FALSE if an error occurs
1573
+	 */
1574 1574
 	function PrintSQL( $format = 'NONE' ) {
1575 1575
 		return $this->getSQL( $format, $sqlArray );
1576 1576
 	}
1577 1577
 	
1578 1578
 	/**
1579
-	* Saves the current SQL array to the local filesystem as a list of SQL queries.
1580
-	*
1581
-	* Call this method to save the array of SQL queries (generally resulting from a
1582
-	* parsed XML schema) to the filesystem.
1583
-	*
1584
-	* @param string $filename Path and name where the file should be saved.
1585
-	* @return boolean TRUE if save is successful, else FALSE. 
1586
-	*/
1579
+	 * Saves the current SQL array to the local filesystem as a list of SQL queries.
1580
+	 *
1581
+	 * Call this method to save the array of SQL queries (generally resulting from a
1582
+	 * parsed XML schema) to the filesystem.
1583
+	 *
1584
+	 * @param string $filename Path and name where the file should be saved.
1585
+	 * @return boolean TRUE if save is successful, else FALSE. 
1586
+	 */
1587 1587
 	function SaveSQL( $filename = './schema.sql' ) {
1588 1588
 		
1589 1589
 		if( !isset( $sqlArray ) ) {
@@ -1602,12 +1602,12 @@  discard block
 block discarded – undo
1602 1602
 	}
1603 1603
 	
1604 1604
 	/**
1605
-	* Create an xml parser
1606
-	*
1607
-	* @return object PHP XML parser object
1608
-	*
1609
-	* @access private
1610
-	*/
1605
+	 * Create an xml parser
1606
+	 *
1607
+	 * @return object PHP XML parser object
1608
+	 *
1609
+	 * @access private
1610
+	 */
1611 1611
 	function &create_parser() {
1612 1612
 		// Create the parser
1613 1613
 		$xmlParser = xml_parser_create();
@@ -1621,10 +1621,10 @@  discard block
 block discarded – undo
1621 1621
 	}
1622 1622
 	
1623 1623
 	/**
1624
-	* XML Callback to process start elements
1625
-	*
1626
-	* @access private
1627
-	*/
1624
+	 * XML Callback to process start elements
1625
+	 *
1626
+	 * @access private
1627
+	 */
1628 1628
 	function _tag_open( &$parser, $tag, $attributes ) {
1629 1629
 		switch( strtoupper( $tag ) ) {
1630 1630
 			case 'TABLE':
@@ -1644,39 +1644,39 @@  discard block
 block discarded – undo
1644 1644
 	}
1645 1645
 	
1646 1646
 	/**
1647
-	* XML Callback to process CDATA elements
1648
-	*
1649
-	* @access private
1650
-	*/
1647
+	 * XML Callback to process CDATA elements
1648
+	 *
1649
+	 * @access private
1650
+	 */
1651 1651
 	function _tag_cdata( &$parser, $cdata ) {
1652 1652
 	}
1653 1653
 	
1654 1654
 	/**
1655
-	* XML Callback to process end elements
1656
-	*
1657
-	* @access private
1658
-	* @internal
1659
-	*/
1655
+	 * XML Callback to process end elements
1656
+	 *
1657
+	 * @access private
1658
+	 * @internal
1659
+	 */
1660 1660
 	function _tag_close( &$parser, $tag ) {
1661 1661
 		
1662 1662
 	}
1663 1663
 	
1664 1664
 	/**
1665
-	* Converts an XML schema string to the specified DTD version.
1666
-	*
1667
-	* Call this method to convert a string containing an XML schema to a different AXMLS
1668
-	* DTD version. For instance, to convert a schema created for an pre-1.0 version for 
1669
-	* AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version 
1670
-	* parameter is specified, the schema will be converted to the current DTD version. 
1671
-	* If the newFile parameter is provided, the converted schema will be written to the specified
1672
-	* file.
1673
-	* @see ConvertSchemaFile()
1674
-	*
1675
-	* @param string $schema String containing XML schema that will be converted.
1676
-	* @param string $newVersion DTD version to convert to.
1677
-	* @param string $newFile File name of (converted) output file.
1678
-	* @return string Converted XML schema or FALSE if an error occurs.
1679
-	*/
1665
+	 * Converts an XML schema string to the specified DTD version.
1666
+	 *
1667
+	 * Call this method to convert a string containing an XML schema to a different AXMLS
1668
+	 * DTD version. For instance, to convert a schema created for an pre-1.0 version for 
1669
+	 * AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version 
1670
+	 * parameter is specified, the schema will be converted to the current DTD version. 
1671
+	 * If the newFile parameter is provided, the converted schema will be written to the specified
1672
+	 * file.
1673
+	 * @see ConvertSchemaFile()
1674
+	 *
1675
+	 * @param string $schema String containing XML schema that will be converted.
1676
+	 * @param string $newVersion DTD version to convert to.
1677
+	 * @param string $newFile File name of (converted) output file.
1678
+	 * @return string Converted XML schema or FALSE if an error occurs.
1679
+	 */
1680 1680
 	function ConvertSchemaString( $schema, $newVersion = NULL, $newFile = NULL ) {
1681 1681
 		
1682 1682
 		// grab current version
@@ -1703,21 +1703,21 @@  discard block
 block discarded – undo
1703 1703
 	}
1704 1704
 	
1705 1705
 	/**
1706
-	* Converts an XML schema file to the specified DTD version.
1707
-	*
1708
-	* Call this method to convert the specified XML schema file to a different AXMLS
1709
-	* DTD version. For instance, to convert a schema created for an pre-1.0 version for 
1710
-	* AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version 
1711
-	* parameter is specified, the schema will be converted to the current DTD version. 
1712
-	* If the newFile parameter is provided, the converted schema will be written to the specified
1713
-	* file.
1714
-	* @see ConvertSchemaString()
1715
-	*
1716
-	* @param string $filename Name of XML schema file that will be converted.
1717
-	* @param string $newVersion DTD version to convert to.
1718
-	* @param string $newFile File name of (converted) output file.
1719
-	* @return string Converted XML schema or FALSE if an error occurs.
1720
-	*/
1706
+	 * Converts an XML schema file to the specified DTD version.
1707
+	 *
1708
+	 * Call this method to convert the specified XML schema file to a different AXMLS
1709
+	 * DTD version. For instance, to convert a schema created for an pre-1.0 version for 
1710
+	 * AXMLS (DTD version 0.1) to a newer version of the DTD (e.g. 0.2). If no DTD version 
1711
+	 * parameter is specified, the schema will be converted to the current DTD version. 
1712
+	 * If the newFile parameter is provided, the converted schema will be written to the specified
1713
+	 * file.
1714
+	 * @see ConvertSchemaString()
1715
+	 *
1716
+	 * @param string $filename Name of XML schema file that will be converted.
1717
+	 * @param string $newVersion DTD version to convert to.
1718
+	 * @param string $newFile File name of (converted) output file.
1719
+	 * @return string Converted XML schema or FALSE if an error occurs.
1720
+	 */
1721 1721
 	function ConvertSchemaFile( $filename, $newVersion = NULL, $newFile = NULL ) {
1722 1722
 		
1723 1723
 		// grab current version
@@ -1798,15 +1798,15 @@  discard block
 block discarded – undo
1798 1798
 	}
1799 1799
 	
1800 1800
 	/**
1801
-	* Processes XSLT transformation errors
1802
-	*
1803
-	* @param object $parser XML parser object
1804
-	* @param integer $errno Error number
1805
-	* @param integer $level Error level
1806
-	* @param array $fields Error information fields
1807
-	*
1808
-	* @access private
1809
-	*/
1801
+	 * Processes XSLT transformation errors
1802
+	 *
1803
+	 * @param object $parser XML parser object
1804
+	 * @param integer $errno Error number
1805
+	 * @param integer $level Error level
1806
+	 * @param array $fields Error information fields
1807
+	 *
1808
+	 * @access private
1809
+	 */
1810 1810
 	function xslt_error_handler( $parser, $errno, $level, $fields ) {
1811 1811
 		if( is_array( $fields ) ) {
1812 1812
 			$msg = array(
@@ -1851,14 +1851,14 @@  discard block
 block discarded – undo
1851 1851
 	}
1852 1852
 	
1853 1853
 	/**
1854
-	* Returns the AXMLS Schema Version of the requested XML schema file.
1855
-	*
1856
-	* Call this method to obtain the AXMLS DTD version of the requested XML schema file.
1857
-	* @see SchemaStringVersion()
1858
-	*
1859
-	* @param string $filename AXMLS schema file
1860
-	* @return string Schema version number or FALSE on error
1861
-	*/
1854
+	 * Returns the AXMLS Schema Version of the requested XML schema file.
1855
+	 *
1856
+	 * Call this method to obtain the AXMLS DTD version of the requested XML schema file.
1857
+	 * @see SchemaStringVersion()
1858
+	 *
1859
+	 * @param string $filename AXMLS schema file
1860
+	 * @return string Schema version number or FALSE on error
1861
+	 */
1862 1862
 	function SchemaFileVersion( $filename ) {
1863 1863
 		// Open the file
1864 1864
 		if( !($fp = fopen( $filename, 'r' )) ) {
@@ -1877,14 +1877,14 @@  discard block
 block discarded – undo
1877 1877
 	}
1878 1878
 	
1879 1879
 	/**
1880
-	* Returns the AXMLS Schema Version of the provided XML schema string.
1881
-	*
1882
-	* Call this method to obtain the AXMLS DTD version of the provided XML schema string.
1883
-	* @see SchemaFileVersion()
1884
-	*
1885
-	* @param string $xmlstring XML schema string
1886
-	* @return string Schema version number or FALSE on error
1887
-	*/
1880
+	 * Returns the AXMLS Schema Version of the provided XML schema string.
1881
+	 *
1882
+	 * Call this method to obtain the AXMLS DTD version of the provided XML schema string.
1883
+	 * @see SchemaFileVersion()
1884
+	 *
1885
+	 * @param string $xmlstring XML schema string
1886
+	 * @return string Schema version number or FALSE on error
1887
+	 */
1888 1888
 	function SchemaStringVersion( $xmlstring ) {
1889 1889
 		if( !is_string( $xmlstring ) OR empty( $xmlstring ) ) {
1890 1890
 			return FALSE;
@@ -1898,15 +1898,15 @@  discard block
 block discarded – undo
1898 1898
 	}
1899 1899
 	
1900 1900
 	/**
1901
-	* Extracts an XML schema from an existing database.
1902
-	*
1903
-	* Call this method to create an XML schema string from an existing database.
1904
-	* If the data parameter is set to TRUE, AXMLS will include the data from the database
1905
-	* in the schema. 
1906
-	*
1907
-	* @param boolean $data Include data in schema dump
1908
-	* @return string Generated XML schema
1909
-	*/
1901
+	 * Extracts an XML schema from an existing database.
1902
+	 *
1903
+	 * Call this method to create an XML schema string from an existing database.
1904
+	 * If the data parameter is set to TRUE, AXMLS will include the data from the database
1905
+	 * in the schema. 
1906
+	 *
1907
+	 * @param boolean $data Include data in schema dump
1908
+	 * @return string Generated XML schema
1909
+	 */
1910 1910
 	function ExtractSchema( $data = FALSE ) {
1911 1911
 		$old_mode = $this->db->SetFetchMode( ADODB_FETCH_NUM );
1912 1912
 		
@@ -2005,15 +2005,15 @@  discard block
 block discarded – undo
2005 2005
 	}
2006 2006
 	
2007 2007
 	/**
2008
-	* Sets a prefix for database objects
2009
-	*
2010
-	* Call this method to set a standard prefix that will be prepended to all database tables 
2011
-	* and indices when the schema is parsed. Calling setPrefix with no arguments clears the prefix.
2012
-	*
2013
-	* @param string $prefix Prefix that will be prepended.
2014
-	* @param boolean $underscore If TRUE, automatically append an underscore character to the prefix.
2015
-	* @return boolean TRUE if successful, else FALSE
2016
-	*/
2008
+	 * Sets a prefix for database objects
2009
+	 *
2010
+	 * Call this method to set a standard prefix that will be prepended to all database tables 
2011
+	 * and indices when the schema is parsed. Calling setPrefix with no arguments clears the prefix.
2012
+	 *
2013
+	 * @param string $prefix Prefix that will be prepended.
2014
+	 * @param boolean $underscore If TRUE, automatically append an underscore character to the prefix.
2015
+	 * @return boolean TRUE if successful, else FALSE
2016
+	 */
2017 2017
 	function SetPrefix( $prefix = '', $underscore = TRUE ) {
2018 2018
 		switch( TRUE ) {
2019 2019
 			// clear prefix
@@ -2040,13 +2040,13 @@  discard block
 block discarded – undo
2040 2040
 	}
2041 2041
 	
2042 2042
 	/**
2043
-	* Returns an object name with the current prefix prepended.
2044
-	*
2045
-	* @param string	$name Name
2046
-	* @return string	Prefixed name
2047
-	*
2048
-	* @access private
2049
-	*/
2043
+	 * Returns an object name with the current prefix prepended.
2044
+	 *
2045
+	 * @param string	$name Name
2046
+	 * @return string	Prefixed name
2047
+	 *
2048
+	 * @access private
2049
+	 */
2050 2050
 	function prefix( $name = '' ) {
2051 2051
 		// if prefix is set
2052 2052
 		if( !empty( $this->objectPrefix ) ) {
@@ -2060,13 +2060,13 @@  discard block
 block discarded – undo
2060 2060
 	}
2061 2061
 	
2062 2062
 	/**
2063
-	* Checks if element references a specific platform
2064
-	*
2065
-	* @param string $platform Requested platform
2066
-	* @returns boolean TRUE if platform check succeeds
2067
-	*
2068
-	* @access private
2069
-	*/
2063
+	 * Checks if element references a specific platform
2064
+	 *
2065
+	 * @param string $platform Requested platform
2066
+	 * @returns boolean TRUE if platform check succeeds
2067
+	 *
2068
+	 * @access private
2069
+	 */
2070 2070
 	function supportedPlatform( $platform = NULL ) {
2071 2071
 		$regex = '/^(\w*\|)*' . $this->db->databaseType . '(\|\w*)*$/';
2072 2072
 		
@@ -2080,22 +2080,22 @@  discard block
 block discarded – undo
2080 2080
 	}
2081 2081
 	
2082 2082
 	/**
2083
-	* Clears the array of generated SQL.
2084
-	*
2085
-	* @access private
2086
-	*/
2083
+	 * Clears the array of generated SQL.
2084
+	 *
2085
+	 * @access private
2086
+	 */
2087 2087
 	function clearSQL() {
2088 2088
 		$this->sqlArray = array();
2089 2089
 	}
2090 2090
 	
2091 2091
 	/**
2092
-	* Adds SQL into the SQL array.
2093
-	*
2094
-	* @param mixed $sql SQL to Add
2095
-	* @return boolean TRUE if successful, else FALSE.
2096
-	*
2097
-	* @access private
2098
-	*/	
2092
+	 * Adds SQL into the SQL array.
2093
+	 *
2094
+	 * @param mixed $sql SQL to Add
2095
+	 * @return boolean TRUE if successful, else FALSE.
2096
+	 *
2097
+	 * @access private
2098
+	 */	
2099 2099
 	function addSQL( $sql = NULL ) {
2100 2100
 		if( is_array( $sql ) ) {
2101 2101
 			foreach( $sql as $line ) {
@@ -2131,13 +2131,13 @@  discard block
 block discarded – undo
2131 2131
 	}
2132 2132
 	
2133 2133
 	/**
2134
-	* Gets the SQL array in the specified format.
2135
-	*
2136
-	* @param string $format Format
2137
-	* @return mixed SQL
2138
-	*	
2139
-	* @access private
2140
-	*/
2134
+	 * Gets the SQL array in the specified format.
2135
+	 *
2136
+	 * @param string $format Format
2137
+	 * @return mixed SQL
2138
+	 *	
2139
+	 * @access private
2140
+	 */
2141 2141
 	function getSQL( $format = NULL, $sqlArray = NULL ) {
2142 2142
 		if( !is_array( $sqlArray ) ) {
2143 2143
 			$sqlArray = $this->sqlArray;
@@ -2159,11 +2159,11 @@  discard block
 block discarded – undo
2159 2159
 	}
2160 2160
 	
2161 2161
 	/**
2162
-	* Destroys an adoSchema object.
2163
-	*
2164
-	* Call this method to clean up after an adoSchema object that is no longer in use.
2165
-	* @deprecated adoSchema now cleans up automatically.
2166
-	*/
2162
+	 * Destroys an adoSchema object.
2163
+	 *
2164
+	 * Call this method to clean up after an adoSchema object that is no longer in use.
2165
+	 * @deprecated adoSchema now cleans up automatically.
2166
+	 */
2167 2167
 	function Destroy() {
2168 2168
 		set_magic_quotes_runtime( $this->mgq );
2169 2169
 		unset( $this );
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/adodb-perf.inc.php 1 patch
Indentation   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 function& adodb_log_sql(&$conn,$sql,$inputarr)
66 66
 {
67 67
 	
68
-    $perf_table = adodb_perf::table();
68
+	$perf_table = adodb_perf::table();
69 69
 	$conn->fnExecute = false;
70 70
 	$t0 = microtime();
71 71
 	$rs =& $conn->Execute($sql,$inputarr);
@@ -213,15 +213,15 @@  discard block
 block discarded – undo
213 213
 	var $createTableSQL = false;
214 214
 	var $maxLength = 2000;
215 215
 	
216
-    // Sets the tablename to be used            
217
-    function table($newtable = false)
218
-    {
219
-        static $_table;
216
+	// Sets the tablename to be used            
217
+	function table($newtable = false)
218
+	{
219
+		static $_table;
220 220
 
221
-        if (!empty($newtable))  $_table = $newtable;
221
+		if (!empty($newtable))  $_table = $newtable;
222 222
 		if (empty($_table)) $_table = 'adodb_logsql';
223
-        return $_table;
224
-    }
223
+		return $_table;
224
+	}
225 225
 
226 226
 	// returns array with info to calculate CPU Load
227 227
 	function _CPULoad()
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	
349 349
 	function Tracer($sql)
350 350
 	{
351
-        $perf_table = adodb_perf::table();
351
+		$perf_table = adodb_perf::table();
352 352
 		$saveE = $this->conn->fnExecute;
353 353
 		$this->conn->fnExecute = false;
354 354
 		
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 		$s = '<h3>Invalid SQL</h3>';
395 395
 		$saveE = $this->conn->fnExecute;
396 396
 		$this->conn->fnExecute = false;
397
-        $perf_table = adodb_perf::table();
397
+		$perf_table = adodb_perf::table();
398 398
 		$rs =& $this->conn->SelectLimit("select distinct count(*),sql1,tracer as error_msg from $perf_table where tracer like 'ERROR:%' group by sql1,tracer order by 1 desc",$numsql);//,$numsql);
399 399
 		$this->conn->fnExecute = $saveE;
400 400
 		if ($rs) {
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
 	{
414 414
 		global $ADODB_FETCH_MODE;
415 415
 		
416
-            $perf_table = adodb_perf::table();
416
+			$perf_table = adodb_perf::table();
417 417
 			$saveE = $this->conn->fnExecute;
418 418
 			$this->conn->fnExecute = false;
419 419
 			
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 	{
493 493
 		global $ADODB_FETCH_MODE;
494 494
 		
495
-            $perf_table = adodb_perf::table();
495
+			$perf_table = adodb_perf::table();
496 496
 			$saveE = $this->conn->fnExecute;
497 497
 			$this->conn->fnExecute = false;
498 498
 			
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 	function UI($pollsecs=5)
636 636
 	{
637 637
 	
638
-    $perf_table = adodb_perf::table();
638
+	$perf_table = adodb_perf::table();
639 639
 	$conn = $this->conn;
640 640
 	
641 641
 	$app = $conn->host;
@@ -963,91 +963,91 @@  discard block
 block discarded – undo
963 963
     
964 964
    /************************************************************************/
965 965
    
966
-    /** 
967
-     * Reorganise multiple table-indices/statistics/..
968
-     * OptimizeMode could be given by last Parameter
969
-     * 
970
-     * @example
971
-     *      <pre>
972
-     *          optimizeTables( 'tableA');
973
-     *      </pre>
974
-     *      <pre>
975
-     *          optimizeTables( 'tableA', 'tableB', 'tableC');
976
-     *      </pre>
977
-     *      <pre>
978
-     *          optimizeTables( 'tableA', 'tableB', ADODB_OPT_LOW);
979
-     *      </pre>
980
-     * 
981
-     * @param string table name of the table to optimize
982
-     * @param int mode optimization-mode
983
-     *      <code>ADODB_OPT_HIGH</code> for full optimization 
984
-     *      <code>ADODB_OPT_LOW</code> for CPU-less optimization
985
-     *      Default is LOW <code>ADODB_OPT_LOW</code> 
986
-     * @author Markus Staab
987
-     * @return Returns <code>true</code> on success and <code>false</code> on error
988
-     */
989
-    function OptimizeTables()
990
-    {
991
-        $args = func_get_args();
992
-        $numArgs = func_num_args();
966
+	/** 
967
+	 * Reorganise multiple table-indices/statistics/..
968
+	 * OptimizeMode could be given by last Parameter
969
+	 * 
970
+	 * @example
971
+	 *      <pre>
972
+	 *          optimizeTables( 'tableA');
973
+	 *      </pre>
974
+	 *      <pre>
975
+	 *          optimizeTables( 'tableA', 'tableB', 'tableC');
976
+	 *      </pre>
977
+	 *      <pre>
978
+	 *          optimizeTables( 'tableA', 'tableB', ADODB_OPT_LOW);
979
+	 *      </pre>
980
+	 * 
981
+	 * @param string table name of the table to optimize
982
+	 * @param int mode optimization-mode
983
+	 *      <code>ADODB_OPT_HIGH</code> for full optimization 
984
+	 *      <code>ADODB_OPT_LOW</code> for CPU-less optimization
985
+	 *      Default is LOW <code>ADODB_OPT_LOW</code> 
986
+	 * @author Markus Staab
987
+	 * @return Returns <code>true</code> on success and <code>false</code> on error
988
+	 */
989
+	function OptimizeTables()
990
+	{
991
+		$args = func_get_args();
992
+		$numArgs = func_num_args();
993 993
         
994
-        if ( $numArgs == 0) return false;
994
+		if ( $numArgs == 0) return false;
995 995
         
996
-        $mode = ADODB_OPT_LOW; 
997
-        $lastArg = $args[ $numArgs - 1];
998
-        if ( !is_string($lastArg)) {
999
-            $mode = $lastArg;
1000
-            unset( $args[ $numArgs - 1]);
1001
-        }
996
+		$mode = ADODB_OPT_LOW; 
997
+		$lastArg = $args[ $numArgs - 1];
998
+		if ( !is_string($lastArg)) {
999
+			$mode = $lastArg;
1000
+			unset( $args[ $numArgs - 1]);
1001
+		}
1002 1002
         
1003
-        foreach( $args as $table) {
1004
-            $this->optimizeTable( $table, $mode);
1005
-        }
1003
+		foreach( $args as $table) {
1004
+			$this->optimizeTable( $table, $mode);
1005
+		}
1006 1006
 	}
1007 1007
 
1008
-    /** 
1009
-     * Reorganise the table-indices/statistics/.. depending on the given mode.
1010
-     * Default Implementation throws an error.
1011
-     * 
1012
-     * @param string table name of the table to optimize
1013
-     * @param int mode optimization-mode
1014
-     *      <code>ADODB_OPT_HIGH</code> for full optimization 
1015
-     *      <code>ADODB_OPT_LOW</code> for CPU-less optimization
1016
-     *      Default is LOW <code>ADODB_OPT_LOW</code> 
1017
-     * @author Markus Staab
1018
-     * @return Returns <code>true</code> on success and <code>false</code> on error
1019
-     */
1020
-    function OptimizeTable( $table, $mode = ADODB_OPT_LOW) 
1021
-    {
1022
-        ADOConnection::outp( sprintf( "<p>%s: '%s' not implemented for driver '%s'</p>", __CLASS__, __FUNCTION__, $this->conn->databaseType));
1023
-        return false;
1024
-    }
1008
+	/** 
1009
+	 * Reorganise the table-indices/statistics/.. depending on the given mode.
1010
+	 * Default Implementation throws an error.
1011
+	 * 
1012
+	 * @param string table name of the table to optimize
1013
+	 * @param int mode optimization-mode
1014
+	 *      <code>ADODB_OPT_HIGH</code> for full optimization 
1015
+	 *      <code>ADODB_OPT_LOW</code> for CPU-less optimization
1016
+	 *      Default is LOW <code>ADODB_OPT_LOW</code> 
1017
+	 * @author Markus Staab
1018
+	 * @return Returns <code>true</code> on success and <code>false</code> on error
1019
+	 */
1020
+	function OptimizeTable( $table, $mode = ADODB_OPT_LOW) 
1021
+	{
1022
+		ADOConnection::outp( sprintf( "<p>%s: '%s' not implemented for driver '%s'</p>", __CLASS__, __FUNCTION__, $this->conn->databaseType));
1023
+		return false;
1024
+	}
1025 1025
     
1026
-    /** 
1027
-     * Reorganise current database.
1028
-     * Default implementation loops over all <code>MetaTables()</code> and 
1029
-     * optimize each using <code>optmizeTable()</code>
1030
-     * 
1031
-     * @author Markus Staab
1032
-     * @return Returns <code>true</code> on success and <code>false</code> on error
1033
-     */
1034
-    function optimizeDatabase() 
1035
-    {
1036
-        $conn = $this->conn;
1037
-        if ( !$conn) return false;
1026
+	/** 
1027
+	 * Reorganise current database.
1028
+	 * Default implementation loops over all <code>MetaTables()</code> and 
1029
+	 * optimize each using <code>optmizeTable()</code>
1030
+	 * 
1031
+	 * @author Markus Staab
1032
+	 * @return Returns <code>true</code> on success and <code>false</code> on error
1033
+	 */
1034
+	function optimizeDatabase() 
1035
+	{
1036
+		$conn = $this->conn;
1037
+		if ( !$conn) return false;
1038 1038
         
1039
-        $tables = $conn->MetaTables( 'TABLES');
1040
-        if ( !$tables ) return false;
1039
+		$tables = $conn->MetaTables( 'TABLES');
1040
+		if ( !$tables ) return false;
1041 1041
 
1042
-        foreach( $tables as $table) {
1043
-            if ( !$this->optimizeTable( $table)) {
1044
-                return false;
1045
-            }
1046
-        }
1042
+		foreach( $tables as $table) {
1043
+			if ( !$this->optimizeTable( $table)) {
1044
+				return false;
1045
+			}
1046
+		}
1047 1047
       
1048
-        return true;
1049
-    }
1050
-    // end hack 
1048
+		return true;
1049
+	}
1050
+	// end hack 
1051 1051
 }
1052 1052
 
1053 1053
 ?>
1054 1054
\ No newline at end of file
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/adodb-csvlib.inc.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 */
26 26
 
27 27
 	/**
28
- 	 * convert a recordset into special format
28
+	 * convert a recordset into special format
29 29
 	 *
30 30
 	 * @param rs	the recordset
31 31
 	 *
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
 	
261 261
 
262 262
 	/**
263
-	* Save a file $filename and its $contents (normally for caching) with file locking
264
-	*/
263
+	 * Save a file $filename and its $contents (normally for caching) with file locking
264
+	 */
265 265
 	function adodb_write_file($filename, $contents,$debug=false)
266 266
 	{ 
267 267
 	# http://www.php.net/bugs.php?id=9203 Bug that flock fails on Windows
Please login to merge, or discard this patch.
phpgwapi/inc/adodb/lang/adodb-en.inc.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -2,33 +2,33 @@
 block discarded – undo
2 2
 
3 3
 $ADODB_LANG_ARRAY = array (
4 4
 			'LANG'                      => 'en',
5
-            DB_ERROR                    => 'unknown error',
6
-            DB_ERROR_ALREADY_EXISTS     => 'already exists',
7
-            DB_ERROR_CANNOT_CREATE      => 'can not create',
8
-            DB_ERROR_CANNOT_DELETE      => 'can not delete',
9
-            DB_ERROR_CANNOT_DROP        => 'can not drop',
10
-            DB_ERROR_CONSTRAINT         => 'constraint violation',
11
-            DB_ERROR_DIVZERO            => 'division by zero',
12
-            DB_ERROR_INVALID            => 'invalid',
13
-            DB_ERROR_INVALID_DATE       => 'invalid date or time',
14
-            DB_ERROR_INVALID_NUMBER     => 'invalid number',
15
-            DB_ERROR_MISMATCH           => 'mismatch',
16
-            DB_ERROR_NODBSELECTED       => 'no database selected',
17
-            DB_ERROR_NOSUCHFIELD        => 'no such field',
18
-            DB_ERROR_NOSUCHTABLE        => 'no such table',
19
-            DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
20
-            DB_ERROR_NOT_FOUND          => 'not found',
21
-            DB_ERROR_NOT_LOCKED         => 'not locked',
22
-            DB_ERROR_SYNTAX             => 'syntax error',
23
-            DB_ERROR_UNSUPPORTED        => 'not supported',
24
-            DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
25
-            DB_ERROR_INVALID_DSN        => 'invalid DSN',
26
-            DB_ERROR_CONNECT_FAILED     => 'connect failed',
27
-            0	                       => 'no error', // DB_OK
28
-            DB_ERROR_NEED_MORE_DATA     => 'insufficient data supplied',
29
-            DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
30
-            DB_ERROR_NOSUCHDB           => 'no such database',
31
-            DB_ERROR_ACCESS_VIOLATION   => 'insufficient permissions'
5
+			DB_ERROR                    => 'unknown error',
6
+			DB_ERROR_ALREADY_EXISTS     => 'already exists',
7
+			DB_ERROR_CANNOT_CREATE      => 'can not create',
8
+			DB_ERROR_CANNOT_DELETE      => 'can not delete',
9
+			DB_ERROR_CANNOT_DROP        => 'can not drop',
10
+			DB_ERROR_CONSTRAINT         => 'constraint violation',
11
+			DB_ERROR_DIVZERO            => 'division by zero',
12
+			DB_ERROR_INVALID            => 'invalid',
13
+			DB_ERROR_INVALID_DATE       => 'invalid date or time',
14
+			DB_ERROR_INVALID_NUMBER     => 'invalid number',
15
+			DB_ERROR_MISMATCH           => 'mismatch',
16
+			DB_ERROR_NODBSELECTED       => 'no database selected',
17
+			DB_ERROR_NOSUCHFIELD        => 'no such field',
18
+			DB_ERROR_NOSUCHTABLE        => 'no such table',
19
+			DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
20
+			DB_ERROR_NOT_FOUND          => 'not found',
21
+			DB_ERROR_NOT_LOCKED         => 'not locked',
22
+			DB_ERROR_SYNTAX             => 'syntax error',
23
+			DB_ERROR_UNSUPPORTED        => 'not supported',
24
+			DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
25
+			DB_ERROR_INVALID_DSN        => 'invalid DSN',
26
+			DB_ERROR_CONNECT_FAILED     => 'connect failed',
27
+			0	                       => 'no error', // DB_OK
28
+			DB_ERROR_NEED_MORE_DATA     => 'insufficient data supplied',
29
+			DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
30
+			DB_ERROR_NOSUCHDB           => 'no such database',
31
+			DB_ERROR_ACCESS_VIOLATION   => 'insufficient permissions'
32 32
 );
33 33
 ?>
34 34
 		
35 35
\ No newline at end of file
Please login to merge, or discard this patch.