Esempio n. 1
0
 public function getFolder($name, $addPrefix = false)
 {
     if ($addPrefix) {
         $name = '/' . $this->user->id . '/' . $name;
     }
     $dbFolder = $this->folder->findOneBy(array('name' => $name));
     $scFolder = $this->sc->getFolder($name);
     if ($dbFolder && $scFolder) {
         $r['db'] = $dbFolder;
         $r['sc'] = $scFolder;
         return $r;
     } else {
         return false;
     }
 }
Esempio n. 2
0
 public function renderDefault()
 {
     $this->template->rootf = $this->sc->getFolder('/');
 }