Artea / xmpphp

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

Making it more PHP5 OOP #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. __construct instead of function [classname]()
2. __destruct for disconnecting from server
3. public, protected, private instead of var and before functions
4. use __autoload instead of multiple require_once
5. method chaining (method returns $this, so it is possible to do for
example $conn->presence($status)->message($someone,$something)->disconnect(); )

Original issue reported on code.google.com by d4n...@gmail.com on 9 Apr 2008 at 6:28

GoogleCodeExporter commented 9 years ago
Ah, things I didn't know about because I haven't written much PHP5.  I'll get 
on it.
  I do enjoy method chaining in Python.

I don't know if I'll bother with these things before 0.1 release.

Original comment by nathanfr...@gmail.com on 16 Apr 2008 at 10:48

GoogleCodeExporter commented 9 years ago
I can help with the PHP5 OOP stuff. I am using your library for a project of
mine(also hosted on google), and these changes will help me. I already 
performed some
actually(1 and 4).

Original comment by khelon...@gmail.com on 18 May 2008 at 5:05

GoogleCodeExporter commented 9 years ago
khelonium, add my fritzy@netflint.net jabber account to your list, and we can 
talk
about your contributions.  For now, Stephan has PHP5ified the lib in SVN.

Original comment by nathanfr...@gmail.com on 27 May 2008 at 11:22