public function getSuggestionsTotal() { return Result::getCount("SELECT * FROM suggestions"); }
private function debug_chk($chk) { array_push(Result::$resultHistory, $chk); //---------------------------------------------- if (GlobalMas::$debug && empty($chk['message'])) { $chk['message'] = $chk['bool'] ? $this->message_true : $this->message_false; } if (GlobalMas::$debug) { $chk['output'] = Trace::$output; } //---------------------------------------------- if ($this->getTotalRows) { $total_chk = Result::getCount($this->orig_queryString, array('mysqli' => $this->mysqli, 'chkForQuery' => true)); array_push(Result::$resultHistory, $total_chk); //------------------------------------------ $chk['totalRows'] = $total_chk['result']; } //---------------------------------------------- if (GlobalMas::$debug) { $chk['resultHistory'] = Result::$resultHistory; } //---------------------------------------------- if ($this->greaterThanZero) { if (sizeof($chk['result']) == 0) { $chk['bool'] = false; $chk['message'] = "result is = to 0"; } } return $chk; }