xoops forums

xoopdio

Just popping in
Posted on: 2012/4/1 13:15
xoopdio
xoopdio (Show more)
Just popping in
Posts: 29
Since: 2011/9/27
#1

updating handler var ?

Hi

I got the following object :

(Object) XoopsModelWrite     
 handler 
(Object) XoopsUserHandler         
handler 
(NULL)         
handlers (Array, 5 elements)            
 
read (NULL)            
 
stats (NULL)            
 
joint (NULL)             
write (NULL)            
 
sync (NULL)         
table (String10 characters xada_users         
keyName 
(String3 characters uid        
 className 
(String9 characters XoopsUser        
 identifierName 
(String5 characters uname        
 db 
(Object) XoopsMySQLDatabaseProxy


Id like to know if its possible to change the table name as entry, and if yes with which method ?
I already tried the setVar method from the class XoopsObject but I must do it wrong or it is not the way to proceed : I couldn't find the proper way to do this.

Thank you
"A tree is made of non-tree elements" Thich Nhat Hanh

xoopdio

Just popping in
Posted on: 2012/4/30 7:50
xoopdio
xoopdio (Show more)
Just popping in
Posts: 29
Since: 2011/9/27
#2

Re: updating handler var ?

Its because you use the wrong handler son, you need to use the xoops_getmodulehandler function instead. ;)
"A tree is made of non-tree elements" Thich Nhat Hanh