Thanks all. Assuming is best then to add the static in this case. But
it isn't required if I birthed an object first and referenced the object,
correct? Am wanting to add some variables to the class so not calling the same
query so many times...
Thanks again.
George
On 2011-06-
All of the above with a clarification: they are instance methods which you
are calling statically. The object is not instantiated in this case. PHP
allows this but will issue an E_STRICT warning. To remove the warning just
add "static" before each of them, assuming they are only ever called
statica
On Thu, Jun 09, 2011 at 03:42:49PM -0600, George Langley wrote:
> Hi all. Am fixing some inherited code, and the previous coder created a
> class, ie:
>
> class myClass {
> function &doThis($passedVar) {
> doSomething;
> }
>
> function &doThat($anotherVar)
On 9 June 2011 22:42, George Langley wrote:
> Hi all. Am fixing some inherited code, and the previous coder created
> a class, ie:
>
> class myClass {
> function &doThis($passedVar) {
> doSomething;
> }
>
> function &doThat($anotherVar) {
>
Hi all. Am fixing some inherited code, and the previous coder created a
class, ie:
class myClass {
function &doThis($passedVar) {
doSomething;
}
function &doThat($anotherVar) {
doSomethingElse;
}
}
BUT, I don't see anywhere
5 matches
Mail list logo