snowrlily / pb4php

Automatically exported from code.google.com/p/pb4php
0 stars 0 forks source link

specifie path for class file in parser #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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