More Bonus: Chaining function calls, and that'll pretty much be it for me on this topic.
PHP Code:
function onCreated() {
a().b().c().d();
}
public function a() {
echo("a");
return this;
}
public function b() {
echo("b");
return this;
}
public function c() {
echo("c");
return this;
}
public function d() {
echo("d");
return this;
}
If you're familiar with jQuery it does a lot of that. I've wrote a couple systems that use it as well:
Basic ActiveRecord
http://forums.graalonline.com/forums...hp?t=134262561
CuteGS2 GUI Builder
http://forums.graalonline.com/forums...hp?t=134263993