示例#1
0
文件: demo.php 项目: xuyintao/thindev
 public function __construct()
 {
     $this->initPar();
     pathTo($this);
 }
示例#2
0
文件: main.php 项目: algorski/DB2FS
function pathTo($p, $cc)
{
    if ($p->parent) {
        return pathTo(ccid($p->parent, $cc), $cc) . '/' . strtolower(transliterate($p->category));
    } else {
        return strtolower(transliterate($p->category));
    }
}