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