public function to_record() {
        return (object) array(
            'id'            => $this->id,
            'name'          => $this->name,
            'description'   => $this->description,
            'pathmatch'     => $this->pathmatch,
            'enabled'       => $this->enabled,
            'sortorder'     => $this->sortorder,
            'configdata'    => json_encode($this->config),
        );
    }
public function to_record() {
        return (object) array(
            'id'            => $this->id,
            'name'          => $this->name,
            'description'   => $this->description,
            'pathmatch'     => $this->pathmatch,
            'enabled'       => $this->enabled,
            'sortorder'     => $this->sortorder,
            'configdata'    => json_encode($this->config),
        );
    }
public function to_record ( ) { return ( object ) array ( 'id' => $ this -> id , 'name' => $ this -> name , 'description' => $ this -> description , 'pathmatch' => $ this -> pathmatch , 'enabled' => $ this -> enabled , 'sortorder' => $ this -> sortorder , 'configdata' => json_encode ( $ this -> config ) , ) ; }
Prepare this tour for saving to the database.

@return  object
Prepare this tour for saving to the database .