Login or Register

RSS IconRecent posts in this topic

avatar
mwp on Dec 13. 2006. 4:43 pm
Hi chaps,

Love activeCollab. Will tell more about my use later.

Can anyone crack this one (ought to be fairly straight forward?) - getting a line on the "my_projects" page on each projects with "Involved members" similar to involved companies. So that I can get an overview on one page with the active projects, plus describtion and with who is on each project.

Cheers,
Mathias
Bang & Olufsen, Denmark

avatar Staff
Ilija Studen on Dec 13. 2006. 5:04 pm
Are you familiar with some basic OOP and PHP principles? I can explain how to do this, but I'm in front of two big deadlines so I can't write the patch (maybe someone else can?).

Basically, every company object has a method getUsers(). That method will return array of all user objects from a given company. Every project object has isProjectUser() method. Pass it a User object and it will tell you if user have permissions to access that project or not. Combining this methods you can get all the users who are involved in a project, grouped by company.

Process will not be the fastest so I'd not advise using it for anything important, but if its really important you can hack it together in 15 minutes.
activeCollab Team Member
avatar
Nick on Dec 13. 2006. 5:54 pm
Out of interest Ilija (and sorry for going off-topic), how did you learn PHP OOP and best-practices? If you have any useful URLs or books, please let me know :)

Thanks!
avatar Staff
Ilija Studen on Dec 13. 2006. 6:06 pm
Various sources - all over the internet. Can't name any in particular, but if you are interested in specific topics open a new topic in chat forum and I'll see if I remember some good resources.

Btw, I started with OOP, not procedural programming (my first serious development was with Delphi and Object Pascal) and it just made sense from the day one. There was never a switch to OOP ;)
activeCollab Team Member
avatar
Nick on Dec 13. 2006. 7:45 pm
Ahh, I remember Delphi :)

Thanks for letting me know - I was just curious :)
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic