コード例 #1
0
ファイル: class.php プロジェクト: arivera12/lazy
 public static function BtnDeleteRecord()
 {
     if (Controller::ExecuteNonQuery($query_name_delete, $params)) {
         Dialog::RequestRecordDeleted();
     } else {
         Dialog::RequestError();
     }
 }
コード例 #2
0
ファイル: controller.php プロジェクト: arivera12/lazy
 /**
  * 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!");
     }
 }