Gabor Hojtsy wrote:

how are methods supposed to be listed in the manual:

foo->bar();

http://www.php.net/manual/en/function.domdocument-add-root.php

or
foo::bar();



http://pear.php.net/manual/en/package.database.db.db-common.affectedrows.p hp

(I didn't find an example in the php manual quickly, but I think I saw
something similar in there as well)


I don't think there was a formal agreement here on this...

Well then should we come to a formal agreement?


I dont think this sort of "magic" in the docs makes sense however the ":" could be used for methods that may be called statically and the "->" for methods that dont allow static calls. But again I am not sure if this sort of "magic" is really helpful. Either way it needs to be documented if the method call may be done statically.

regards,
Lukas Smith
[EMAIL PROTECTED]
_______________________________
  BackendMedia
  www.backendmedia.com
  [EMAIL PROTECTED]

  Linn Zwoch Smith GbR
  Pariser Str. 44
  D-10707 Berlin

  Tel +49 30 83 22 50 00
  Fax +49 30 83 22 50 07

Reply via email to