logo       

Re: To extend PHPWS_Item or not: msg#00022

Subject: Re: To extend PHPWS_Item or not
Sounds like a PHPWS_Item to me.  The question is, do you require the properties 
and methods that go with PHPWS_Item?   My interpretation is PHPWS_Item performs 
updates transparent to the datasource and keeps track of various items such as 
owner, modifier, time of modification, ip address from which modification came 
in.  Pretty fundamental I think as far as base classes in php go.  The fact 
that you aren't using logins only removes the usefullness of the owner/modifier 
column.  I would be interested in hearing other opinions.

Best,

Jim


> -----Original Message-----
> From: Verdon Vaillancourt <vern@xxxxxxxxx>
> Sent: Wednesday, 4. May 2005 10:37 -0400
> To: phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
> Subject: [Phpwebsite-developers] To extend PHPWS_Item or not
> 
> Hi 
> 
> Previously I've done a lot of serious hacking to other people's mods, 
> I'm now in process of trying to write one of medium sophistication 
> completely from scratch (well, more or less ;). One thing I'm not sure 
> of is when I should make a class an extension of PHPWS_Item and when I 
> should not, or if there is any hard-set rule. In my specific case, I am 
> writing a mod that facilitates online petitions. I have written one 
> class for the actual petitions, which does extend PHPWS_Item. I am now 
> working on the class for signatures and it is that one that I am unsure 
> of how to handle. The signatures are not items that will ever be 
> directly manipulated by a logged in user, per say. Basically, an annon 
> visitor can fill in a form to sign the petition. They will then get an 
> e-mail with a link to click, which when they do so, the signature 
> record is updated to indicate status as verified. At any time, an admin 
> will be able to go in to the site and get stats on the number of 
> verified signatures, print lists, and so on.
> 
> So, I guess what I'm asking is, is there any hard-set rules as to when 
> it is best to make a class an extension of PHPWS_Item or not? I've read 
> through many core and 3rd party mods, and although I see some 
> similarities in approach, I don't really see a pattern.
> 
> TIA for any advice.
> 
> Best regards from Northern Ontario, Canada,
> verdon vaillancourt
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> 
> Phpwebsite-developers mailing list
> Phpwebsite-developers@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers
> 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe