public static function BtnDeleteRecord() { if (Controller::ExecuteNonQuery($query_name_delete, $params)) { Dialog::RequestRecordDeleted(); } else { Dialog::RequestError(); } }
/** * 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!"); } }