Is this possible?
class Foo {
  public function bar() {
   return true;
  }
}
class Foo2 {
  $fooey = new Foo;
  public function bar2() {
    if ( $fooey->bar ) {
        return 'bar is true';  
    }
  }
}
I realize the above would not work because I need to get $fooey inside the scope of bar2. How would I do this?
Thanks in advance.
 
     
    