[Typo3-dev] pi_getLL() from own classes

Tonni Aagesen goes at dev.null
Mon Sep 27 15:36:22 CEST 2004


Volker Biberger wrote:
> I am well aware of using the functions within my _pi.php, but that was 
> not what I meant.
> 
> I introduced a new class
> 
> new someclass {
>     var $anything;
> 
>     function doSomething()
>         return $????-> pi_getLL('label');
>     }
> }
> 
> my mainclass calls it using
> $myclass = new someclass;
> $this->content = $myclass->doSomething();
> 
> I hope this clearifies my problem.


I your custom class is instanciated from your _pi class, you could 
something like:


new someclass {
     function foo() {
         return parent::pi_getLL(...);
     }
}


class tx_myext_pi1 extends tslib_pibase {

     function bar() {
         $foobar = new someclass();
         $content = $foobar->foo();
     }

}


-- 
Best regards
Tonni Aagesen
www.cazoo.dk




More information about the TYPO3-dev mailing list