controllers/commands/Database.php
public function cmdAddDatabase()
    {
        $table = $this->getParam(0);
        $data = $this->getOptions();

        if (empty($table) || empty($data)) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        $this->line($this->db->insert($table, $data));
        $this->output();
    }
public function cmdAddDatabase()
    {
        $table = $this->getParam(0);
        $data = $this->getOptions();

        if (empty($table) || empty($data)) {
            $this->errorAndExit($this->text('Invalid command'));
        }

        $this->line($this->db->insert($table, $data));
        $this->output();
    }
public function cmdAddDatabase ( ) { $ table = $ this -> getParam ( 0 ) ; $ data = $ this -> getOptions ( ) ; if ( empty ( $ table ) || empty ( $ data ) ) { $ this -> errorAndExit ( $ this -> text ( 'Invalid command' ) ) ; } $ this -> line ( $ this -> db -> insert ( $ table , $ data ) ) ; $ this -> output ( ) ; }
Callback for "database-add" command
Callback for database - add command