original_string: public function cmdDeleteDatabase()
      {
          $table = $this->getParam(0);
          $conditions = $this->getOptions();
  
          if (empty($table) || empty($conditions)) {
              $this->errorAndExit($this->text('Invalid command'));
          }
  
          if (!$this->db->delete($table, $conditions)) {
              $this->errorAndExit($this->text('An error occurred'));
          }
  
          $this->output();
      }
code: public function cmdDeleteDatabase()
      {
          $table = $this->getParam(0);
          $conditions = $this->getOptions();
  
          if (empty($table) || empty($conditions)) {
              $this->errorAndExit($this->text('Invalid command'));
          }
  
          if (!$this->db->delete($table, $conditions)) {
              $this->errorAndExit($this->text('An error occurred'));
          }
  
          $this->output();
      }
code_tokens: public function cmdDeleteDatabase ( ) { $ table = $ this -> getParam ( 0 ) ; $ conditions = $ this -> getOptions ( ) ; if ( empty ( $ table ) || empty ( $ conditions ) ) { $ this -> errorAndExit ( $ this -> text ( 'Invalid command' ) ) ; } if ( ! $ this -> db -> delete ( $ table , $ conditions ) ) { $ this -> errorAndExit ( $ this -> text ( 'An error occurred' ) ) ; } $ this -> output ( ) ; }
docstring: Callback for "database-delete" command
docstring_tokens: Callback for database - delete command