04-18-2009, 12:41 PM
|
#6 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
One thing to keep in mind though, is that every classvariable ($this->classvariable) should be declared in the beginning of the class.
Like such:
PHP Code:
class Pagination {
private $classvariable1; private $classvariable2; private $classvariable3;
// in your methods you can then access them like normal: $this->classvariable1 or 2 or 3 respectivly.
}
Note that you can use whichever scope you want right now, but I would strongly advice you not to use public classvariables.
Also note that it will work even if you don't declare them, however the PHP will work faster if you declare them, so just an advice.
__________________
|
|
|
|