Esempio n. 1
0
 function create_root()
 {
     $peer = new FolderPeer();
     $do = $peer->new_do();
     $peer->setupByParams($do);
     $do->id_parent_folder = null;
     $peer->save($do);
     if (is_html()) {
         return Result::ok();
     } else {
         return ActiveRecordUtils::toArray($do);
     }
 }
Esempio n. 2
0
 function create_root()
 {
     $peer = new FolderPeer();
     $do = $peer->new_do();
     $peer->setupByParams($do);
     $do->path = "";
     $do->nome = "";
     $do->ordine = 1;
     $do->level = 0;
     $peer->save($do);
     if (is_html()) {
         return Result::ok();
     } else {
         return ActiveRecordUtils::toArray($do);
     }
 }