Re: [PHP] How to call a function from $classname

2005-03-15 Thread André Pletschette
name->test( ); Thankyou, André -- André Pletschette GSM: 091 719 991 Skype: pletschette (Internet Telephony) VCard: http://andre.pletschette.net/ .o°'˜'°o.o°'˜'°o.o°'˜'°o.o°'˜'°o.o°'˜'°o. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to call a function from $classname

2005-03-15 Thread André Pletschette
Hi, What do I have to do to call a function from $classname? Like: $classname->test( ); Thankyou, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread André Pletschette
;t have a solution for my second problem: I don't want to supply $classname as Parameter when calling: testTable::toHtml_table_heading($dbConnect, "testTable"); André André Pletschette wrote: Thanks Jochem, I now solved the problem with your help, the following way: In the parent-clas

Re: [PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread André Pletschette
t;); - I need a similar thing for an Array $fields, which contains the field descriptions of the class: static function toHtml_table_heading($dbConnect, $classname) { $result = "\n\t"; if (!isset("$classname::$fields")) { $classname->intializeClass($dbConnect, $classname); } ...

[PHP] Is their something like $classname::$tablename ?

2005-03-15 Thread André Pletschette
Hi, I've got one function getTableName() which returns the Database-Table with the data of a class (see below). As you can see it always calls the static $tablename of the subclass described by $this->classname. Thankyou, André Here the function: function getTableName() { if ($this->

[PHP] Referencing different static members in inheriting classes

2005-03-15 Thread André Pletschette
Hi, In the static function "toHtml_table_heading" I want to use a static array $fields, which has different content for each implementation (sub-class) My first trial was to use self::$fields[] to access this array, but this only sees the member of DBTable (the class where it is been used, no

[PHP] Referencing different static members in

2005-03-14 Thread André Pletschette
Hi, In the static function "toHtml_table_heading" I want to use a static array $fields, which is defined differently in each implementation. My first trial was to use self::$fields[] to access this array, but this only sees the member of DBTable, not the inherited from DBTable. My second tri