public function __construct() { $this->initPar(); pathTo($this); }
function pathTo($p, $cc) { if ($p->parent) { return pathTo(ccid($p->parent, $cc), $cc) . '/' . strtolower(transliterate($p->category)); } else { return strtolower(transliterate($p->category)); } }