php-windows Digest 21 Jun 2012 06:27:07 -0000 Issue 4054

Topics (messages 30916 through 30918):

Re: Object instantiation/referral conventions/alternatives
        30916 by: Keith Davis
        30917 by: Jacob Kruger

Date Problem
        30918 by: Vinay Kannan

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Are you referring to calling methods and properties statically? That is
the notation that you have below.

http://php.net/manual/en/language.oop5.static.php

Keith Davis (214) 906-5183


-----Original Message-----
From: Jacob Kruger [mailto:ja...@blindza.co.za]
Sent: Monday, June 18, 2012 8:56 AM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] Object instantiation/referral
conventions/alternatives

Sorry if subject line is off-topic/off-subject, but, again, comes down
to not 100% sure about what am asking...:)

Either way, along with these sort of wrapper/parent type objects am now
meant to make use of, the naming convention used to refer to them is
like the following:
Security::functionName();
Database::anythingYouLike;

Those could be referring to either a function, a method, or a property,
and think the objects Security and Database are being instantiated in
the sort of page framework/wrapper I am referring to in the top part of
a PHP page, but, not sure exactly how they are defined, if it's a
server/naming convention setting that means they then don't need to
specifically make use of the $ sign before the name of these objects,
whether it's to do with them having being included/instantiated once
off, globally, etc., etc., and the issue with trying to investigate
something like this by searching around the 'net is that certain search
terms aren't the best when it comes to searching around google for
things like this...LOL!

What am trying to put together right about now are my own sort of dummy
versions of these objects, so that can do a bit more testing/trying out
code on my side before uploading pages to server, etc., but anyway.

Thoughts, etc.?

TIA

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


This message (including any attachments) may contain confidential or otherwise 
privileged information and is intended only for the individual(s) to which it 
is addressed. If you are not the named addressee you should not disseminate, 
distribute or copy this e-mail. Please notify the sender immediately by e-mail 
if you have received this e-mail by mistake and delete this e-mail from your 
system. E-mail transmission cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message or that arise as a 
result of e-mail transmission. If verification is required please request a 
hard-copy version from the sender.

www.pridedallas.com


--- End Message ---
--- Begin Message ---
That's exactly it - thanks.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Keith Davis" <keithda...@pridedallas.com>
To: <php-wind...@lists.php.net>
Sent: Monday, June 18, 2012 4:00 PM
Subject: RE: [PHP-WIN] Object instantiation/referral conventions/alternatives


Are you referring to calling methods and properties statically? That is
the notation that you have below.

http://php.net/manual/en/language.oop5.static.php

Keith Davis (214) 906-5183


-----Original Message-----
From: Jacob Kruger [mailto:ja...@blindza.co.za]
Sent: Monday, June 18, 2012 8:56 AM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] Object instantiation/referral
conventions/alternatives

Sorry if subject line is off-topic/off-subject, but, again, comes down
to not 100% sure about what am asking...:)

Either way, along with these sort of wrapper/parent type objects am now
meant to make use of, the naming convention used to refer to them is
like the following:
Security::functionName();
Database::anythingYouLike;

Those could be referring to either a function, a method, or a property,
and think the objects Security and Database are being instantiated in
the sort of page framework/wrapper I am referring to in the top part of
a PHP page, but, not sure exactly how they are defined, if it's a
server/naming convention setting that means they then don't need to
specifically make use of the $ sign before the name of these objects,
whether it's to do with them having being included/instantiated once
off, globally, etc., etc., and the issue with trying to investigate
something like this by searching around the 'net is that certain search
terms aren't the best when it comes to searching around google for
things like this...LOL!

What am trying to put together right about now are my own sort of dummy
versions of these objects, so that can do a bit more testing/trying out
code on my side before uploading pages to server, etc., but anyway.

Thoughts, etc.?

TIA

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender.

www.pridedallas.com


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Hey Guys,

I am working on a project for a client who is a retailer of inverters and
batteries, and currently the system records the salesdetails including the
warranty expiry date which is always a year(12 months).

But he wishes to provide support and service every 3 months and that seems
to be the beginning of my problems :D

if the warranty on billno ='100' expires on 2012-09-27, the system has to
show him this billno 4 times as a service due.
Eg: a product was sold and a bill generated on 2011-9-27, the warranty on
the products expires on 2012-9-27, so the system has to show the first
service due on 2011-12-27, then one on 2012-3-27, then on 2012-6-27.

How do i go about it?

Any help is much appreciated.

Thanks,

--- End Message ---

Reply via email to