controllers/commands/Database.php
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();
    }
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();
    }
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 ( ) ; }
Callback for "database-delete" command
Callback for database - delete command