Forums / General Questions / $messageStack->add('gv_send'...

$messageStack->add('gv_send'...

Locked

Started by creative_mind on 5 May 2010, 2:30 AM · Views: 3,042

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 May 2010, 2:30 AM
#1
creative_mind avatar

creative_mind

New Zenner

Join Date:
Mar 2009
Location:
Colorado Springs, Colorado
Posts:
25
Plugin Contributions:
0

$messageStack->add('gv_send'...

I am still new to PHP.

How does the statement below work?

Is it an array, string?

$messageStack->add('gv_send', ERROR_ENTRY_TO_NAME_CHECK, 'error');

Thanks. :dontgetit

5 May 2010, 2:40 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: $messageStack->add('gv_send'...

Let's back WAY up ... Why are you asking that question? What's the problem you're trying to solve?

(That statement is neither an array nor a string. It's an object of an instantiated class, calling a member method within the class to set some values based on parameters supplied.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2010, 3:45 AM
#3
creative_mind avatar

creative_mind

New Zenner

Join Date:
Mar 2009
Location:
Colorado Springs, Colorado
Posts:
25
Plugin Contributions:
0

Re: $messageStack->add('gv_send'...

DrByte:

Let's back WAY up ... Why are you asking that question? What's the problem you're trying to solve?

(That statement is neither an array nor a string. It's an object of an instantiated class, calling a member method within the class to set some values based on parameters supplied.)

I am trying to test a string inside $messagestack with with this predefined string - ERROR_ENTRY_TO_NAME_CHECK using the stristr() function inside the if{ } statement for pass/no pass.

Does this make any sense? :dontgetit

5 May 2010, 3:56 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: $messageStack->add('gv_send'...

LOL ... I'm gonna ask "why" again :blush:

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2010, 6:11 AM
#5
creative_mind avatar

creative_mind

New Zenner

Join Date:
Mar 2009
Location:
Colorado Springs, Colorado
Posts:
25
Plugin Contributions:
0

Re: $messageStack->add('gv_send'...

DrByte:

LOL ... I'm gonna ask "why" again :blush:

Never mind, I figured it out.

Thanks. :smile: