public function toStdClass()
    {
        $this->_prepareData();
        $data = new stdClass();

        foreach ($this->toArray() as $key => $val) {
            $data->$key = $val;
        }

        return $data;
    }
public function toStdClass()
    {
        $this->_prepareData();
        $data = new stdClass();

        foreach ($this->toArray() as $key => $val) {
            $data->$key = $val;
        }

        return $data;
    }
public function toStdClass ( ) { $ this -> _prepareData ( ) ; $ data = new stdClass ( ) ; foreach ( $ this -> toArray ( ) as $ key => $ val ) { $ data -> $ key = $ val ; } return $ data ; }
return object as stdClass

@return stdClass
return object as stdClass