1
banesto
Re: XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/28 14:12

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


I would say i have exactly this file in my module class folder :)

I know I should upgrade to new version, but I want to get my module fully functional, then install-able and then make the change.

Is there any tutorials about using these handlers'n'stuff ?

Thanks for the replies!
where's my red bull!



2
banesto
Re: XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/28 13:57

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


the biggest difference i'm seeing is that in second example You are extending not XoopsObjectHandler class but another one. That's what i'm aiming for right now, because all my classes use a lot of same methods.

XoopsPersistableObjectHandler is specially written for module, right?
where's my red bull!



3
banesto
Re: XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/28 13:35

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


2.0.16
where's my red bull!



4
banesto
Re: XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/28 10:35

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


so, if i get this right, then

1. after form submit of existing record i call $obj = $obj_handler->get($id);
2. assign submitted values $obj->setVars($vars);
3. check wether object is dirty $obj->isDirty();
4. if it is, call method to go through all object variables to check which ones ar changed and update them

if this ir right, can you tell me where can i find example of this functionality?
where's my red bull!



5
banesto
XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/27 16:05

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


Hello!

I've been working on a complicated module and i noticed that setVar method has a parameter "changed". So I'm curious can somebody show real usage of this when modifying data, e.g. how can class itself find out that the array of values are changed or not -> modify if they are modified, do nothing if they're the same.

In my case, i have records to delete or modify or insert.
where's my red bull!



6
banesto
Re: xoopsModuleConfig question
  • 2009/1/18 20:06

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


worked like a charm! Thanks a lot! helped me a lot in making module block, which uses block configuration data!
where's my red bull!



7
banesto
Re: Add user fails to add user to group(s)
  • 2007/3/5 8:23

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


2.0.16. doesn't do the thing - the same bug
where's my red bull!



8
banesto
Re: Module Development tutorial (with classes)
  • 2007/2/21 13:16

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


oh, the sql wasn't executed.. shame on me.

but what about db->getid()? this returns 0 every time, even user class, when inserting new user. so what's use of it?
where's my red bull!



9
banesto
Re: Module Development tutorial (with classes)
  • 2007/2/20 21:47

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


thanks for replies!

i've got some new question:

$this->db->getInsertid();

called this after INSERT query and no matter what the primary key value is, it returs 0.. what is wrong?
where's my red bull!



10
banesto
Re: AJAX
  • 2007/1/29 18:49

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


of course it depends on module developers, but im talking about XOOPS core feature - comment system, pm, search, paging, menus, profiles, redirects... i can try to upgrade them to be AJAX compatible, but core developers are masters here.. it would be a waste if i'd do that and then new XOOPS release comes with all those features in much better way..

so here comes the big question - is big improvement job with XOOPS core being done?

as for AJAX modules, is there a useful guide how to make AJAX compatible module with the new smarty version?
where's my red bull!




TopTop
(1) 2 3 4 ... 6 »



Login

Who's Online

74 user(s) are online (33 user(s) are browsing Support Forums)


Members: 0


Guests: 74


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits