Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_clearfld.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Generated Header (not documented yet)
8  *
9  * @author Anakeen
10  * @version $Id: freedom_clearfld.php,v 1.3 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: freedom_clearfld.php,v 1.3 2005/06/28 08:37:46 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/freedom_clearfld.php,v $
19 // ---------------------------------------------------------------
20 // ==========================================================================
21 // unreference all document in the folder
22 // ==========================================================================
23 include_once ("FDL/Lib.Dir.php");
24 include_once ("FDL/freedom_util.php");
25 // -----------------------------------
27 {
28  // -----------------------------------
29  // insert the documents of $dirid in folder $id
30  // PrintAllHttpVars();
31  // Get all the params
32  $docid = GetHttpVars("id");
33  $mode = GetHttpVars("mode", "latest");
34  $return = GetHttpVars("return"); // return action may be folio
35  $dbaccess = $action->dbaccess;
36  /*
37  * @var Dir $doc
38  */
40  $err = $doc->Clear();
41 
42  if ($err != "") $action->exitError($err);
43 
44  redirect($action, "FREEDOM", "FREEDOM_VIEW&dirid=$docid");
45 }
global $action
exitError($texterr, $exit=true, $code="")
$docid
Definition: cleanFamily.php:13
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
if($file) if($subject==""&&$file) if($subject=="") $err
freedom_clearfld(Action &$action)
← centre documentaire © anakeen