Ferreteria/v2/class/ftRenderableTree

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Ferreteria‎ | v2‎ | class
Jump to: navigation, search
  • file: page/page.php
  • used by: fcPage

Code

trait ftRenderableTree {
    protected function RenderNodes() {
	$out = NULL;
	if ($this->HasNodes()) {
	    $out = $this->RenderBeforeNodes();
	    $ar = $this->GetNodes();
	    foreach ($ar as $name => $oNode) {
		$out .= $oNode->Render();
	    }
	    $out .= $this->RenderAfterNodes();
	}
	return $out;
    }
    protected function RenderBeforeNodes() { return ''; }
    protected function RenderAfterNodes() { return ''; }
}