Class waLazyDisplay
helps write calls of display()
methods of framework classes in a shorter way if a method returns HTML code or other text contents.
Standard syntax
$action = new someappMyPluginBackendTestAction(); $html = $action->display();
Short syntax
$html = new waLazyDisplay(new someappMyPluginBackendTestAction());
A class whose instance is passsed to a waLazyDisplay
constructor as an arguments must have a non-static public method named 'display' and returning HTML code or other text contents.