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
Revision as of 20:50, 3 May 2019 by Woozle (talk | contribs) (Created page with "{{page/code/class}} * '''file''': {{l/ferreteria/file|page/page.php}} * '''used by''': {{l/version|class|fcPage}} ==Code== <source lang=php> trait ftRenderableTree { prote...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ''; }
}