Thread: obj.objecttype
View Single Post
  #1  
Old 08-27-2007, 09:53 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
obj.objecttype

Well.. the thread name is kinda silly.. but.. does objecttype return the parent objecttype (here being TStaticVar)?
PHP Code:
function onCreated() {
  
temp.obj = new TStaticVar("TestObject");
  
temp.obj.foo "bar";
  
  
temp.obj2 = new TestObject();
  
  echo(
temp.obj2.objecttype());

Is there a way to make it echo/return "TestObject"?

Can't seem to find a way...
__________________
Reply With Quote