public function insert()
    {
        $this->SQLTemplate('insert')->execute();

        return
            $this->hasInsertOption('ignore') ? null :
            $this->owner->lastID();
    }
public function insert()
    {
        $this->SQLTemplate('insert')->execute();

        return
            $this->hasInsertOption('ignore') ? null :
            $this->owner->lastID();
    }
public function insert ( ) { $ this -> SQLTemplate ( 'insert' ) -> execute ( ) ; return $ this -> hasInsertOption ( 'ignore' ) ? null : $ this -> owner -> lastID ( ) ; }
Executes insert query. Returns ID of new record.

@return int new record ID (from last_id)
Executes insert query . Returns ID of new record .