Quote:
Originally Posted by callimuc
PHP Code:
function onCreated() {
this.bla = ...;
thiso.bla = ...;
temp.bla = ...;
}
|
this. prefix points to the current object.
PHP Code:
with (object) {
this.somevar = 2;
}
echo(object.somevar);
thiso. prefix points to the object that is running the script.
PHP Code:
thiso.someothervar = 4;
with (object) {
this.somevar = thiso.someothervar;
}
echo(object.somevar);
temp. prefixed vars will be destroyed once the function that contains them has run.