chinaweilu/pb4php

specifie path for class file in parser

GoogleCodeExporter opened this issue · 0 comments

In the parser/pb_parser.php class, parse() method, it was possible to
specifie a destination path for the generated classfile.

Now it puts the class in the current directory from the caller page.

It would be nice to be able to specify it again.

Here is a quick diff..

$ diff pb_parser_old.php pb_parser.php 
37c37
<     public function parse($protofile)

---
>     public function parse($protofile, $classpath='')
55c55
<         $this->_create_class_file( $this->created_php_file_name );

---
>         $this->_create_class_file( $classpath .
$this->created_php_file_name );

Original issue reported on code.google.com by ror...@gmail.com on 29 May 2009 at 9:23