コード例 #1
0
ファイル: VideoOrganizer.php プロジェクト: awwthentic1234/hey
 public function getSuggestionsTotal()
 {
     return Result::getCount("SELECT * FROM suggestions");
 }
コード例 #2
0
ファイル: Result.php プロジェクト: awwthentic1234/hey
 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;
 }