Example #1
0
 public static function BtnDeleteRecord()
 {
     if (Controller::ExecuteNonQuery($query_name_delete, $params)) {
         Dialog::RequestRecordDeleted();
     } else {
         Dialog::RequestError();
     }
 }
Example #2
0
 /**
  * If there is no rows for the view the script stops and send a message to the client.
  * @param array $view
  * @return void
  */
 private static function HasRowsViewDie($view)
 {
     if (count($view) == 0) {
         Dialog::RequestError("The view " . $view_name . " doesn't exist!");
     }
 }