Changeset 14622
- Timestamp:
- 01/24/08 15:48:42 (11 months ago)
- Files:
-
- trunk/midcom/midcom.core/midcom/core/querybuilder.php (modified) (7 diffs)
- trunk/midcom/midcom.helper.reflector/reflector.php (modified) (1 diff)
- trunk/midcom/org.routamc.positioning/country.php (modified) (1 diff)
- trunk/midcom/org.routamc.positioning/location.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/core/querybuilder.php
r14613 r14622 126 126 */ 127 127 var $_qb; 128 129 /** 130 * The number of groups open 131 * 132 * @var int 133 * @access private 134 */ 135 var $_groups = 0; 128 136 129 137 /** … … 533 541 //debug_pop(); 534 542 } 543 544 function _check_groups() 545 { 546 while ($this->_groups > 0) 547 { 548 debug_push_class(__CLASS__, __FUNCTION__); 549 debug_add('Ending unterminated QB group', MIDCOM_LOG_INFO); 550 debug_pop(); 551 $this->end_group(); 552 } 553 } 535 554 536 555 function execute() 537 556 { 557 $this->_check_groups(); 558 538 559 return $this->execute_windowed(); 539 560 //return $this->execute_notwindowed(); … … 633 654 function execute_unchecked() 634 655 { 656 $this->_check_groups(); 657 635 658 $this->_reset(); 636 659 … … 782 805 function begin_group($operator = 'OR') 783 806 { 807 $this->_groups++; 784 808 $this->_qb->begin_group($operator); 785 809 } … … 790 814 function end_group() 791 815 { 816 $this->_groups--; 792 817 $this->_qb->end_group(); 793 818 } … … 857 882 function count() 858 883 { 884 $this->_check_groups(); 885 859 886 if ($this->count == -1) 860 887 { … … 879 906 function count_unchecked() 880 907 { 908 $this->_check_groups(); 909 881 910 if ($this->_limit) 882 911 { trunk/midcom/midcom.helper.reflector/reflector.php
r14490 r14622 800 800 $baseclass = $parent; 801 801 $parent = get_parent_class($baseclass); 802 803 if (empty($parent)) 804 { 805 break; 806 } 802 807 } 803 808 while ($parent !== false); trunk/midcom/org.routamc.positioning/country.php
r14084 r14622 15 15 class org_routamc_positioning_country_dba extends __org_routamc_positioning_country_dba 16 16 { 17 function org_routamc_positioning_country_dba($id = null)17 function __construct($id = null) 18 18 { 19 return parent::__ org_routamc_positioning_country_dba($id);19 return parent::__construct($id); 20 20 } 21 21 trunk/midcom/org.routamc.positioning/location.php
r6154 r14622 15 15 class org_routamc_positioning_location_dba extends __org_routamc_positioning_location_dba 16 16 { 17 function org_routamc_positioning_location_dba($id = null)17 function __construct($id = null) 18 18 { 19 return parent::__ org_routamc_positioning_location_dba($id);19 return parent::__construct($id); 20 20 } 21 21
