Beispiel #1
0
 private function createFolder($name, $quota = NULL, $comment = '')
 {
     $state = $this->sc->createFolder($name, $quota);
     if (!$state) {
         return false;
     }
     $this->sc->fixPermissions($name);
     $id = $this->folder->insert(array('name' => $name, 'user_id' => $this->user->id, 'dateCreated' => time(), 'comment' => $comment));
     return $id;
 }
Beispiel #2
0
 public function renderDefault()
 {
     $this->template->rootf = $this->sc->getFolder('/');
 }