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); } }
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); } }