public function to_record() {
        return (object) array(
            'id'            => $this->id,
            'tourid'        => $this->tourid,
            'title'         => $this->title,
            'content'       => $this->content,
            'targettype'    => $this->targettype,
            'targetvalue'   => $this->targetvalue,
            'sortorder'     => $this->sortorder,
            'configdata'    => json_encode($this->config),
        );
    }
public function to_record() {
        return (object) array(
            'id'            => $this->id,
            'tourid'        => $this->tourid,
            'title'         => $this->title,
            'content'       => $this->content,
            'targettype'    => $this->targettype,
            'targetvalue'   => $this->targetvalue,
            'sortorder'     => $this->sortorder,
            'configdata'    => json_encode($this->config),
        );
    }
public function to_record ( ) { return ( object ) array ( 'id' => $ this -> id , 'tourid' => $ this -> tourid , 'title' => $ this -> title , 'content' => $ this -> content , 'targettype' => $ this -> targettype , 'targetvalue' => $ this -> targetvalue , 'sortorder' => $ this -> sortorder , 'configdata' => json_encode ( $ this -> config ) , ) ; }
Prepare this step for saving to the database.

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