core/db_models/EEM_Question_Group.model.php 1 location
|
@@ 73-79 (lines=7) @@
|
| 70 |
|
* @access public |
| 71 |
|
* @return int |
| 72 |
|
*/ |
| 73 |
|
public function get_latest_question_group_order() { |
| 74 |
|
$columns_to_select = array( |
| 75 |
|
'max_order' => array("MAX(QSG_order)","%d") |
| 76 |
|
); |
| 77 |
|
$max = $this->_get_all_wpdb_results(array(), ARRAY_A, $columns_to_select ); |
| 78 |
|
return $max[0]['max_order']; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
|
| 82 |
|
} |
core/db_models/EEM_Question.model.php 1 location
|
@@ 257-263 (lines=7) @@
|
| 254 |
|
* @access public |
| 255 |
|
* @return int |
| 256 |
|
*/ |
| 257 |
|
public function get_latest_question_order() { |
| 258 |
|
$columns_to_select = array( |
| 259 |
|
'max_order' => array("MAX(QST_order)","%d") |
| 260 |
|
); |
| 261 |
|
$max = $this->_get_all_wpdb_results( array(), ARRAY_A, $columns_to_select ); |
| 262 |
|
return $max[0]['max_order']; |
| 263 |
|
} |
| 264 |
|
|
| 265 |
|
/** |
| 266 |
|
* Returns an array where keys are system question QST_system values, |