Hi,

I have a program which generates classes based on table structures within
a database. However there are a few times where I need to put custom
methods within these generated classes.

I want to be able to do this but php gives an error for the following include

class generatedClass {
  var $this = 0;

  function here($strVar){

   echo 'this';
  }

  include (extended_methods_stuff.php);

}

I know that I can probably extend this class to add the extra
functionality however the other generated classes rely on the name of this
class so I cannot just extend this class and it's name cannot change.

Is there any way to have an include prior to the class being parsed?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to