Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
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
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Generated Header (not documented yet)
9
*
10
* @author Anakeen 2000
11
* @version $Id: freedom_clearfld.php,v 1.3 2005/06/28 08:37:46 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage GED
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: freedom_clearfld.php,v 1.3 2005/06/28 08:37:46 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/freedom_clearfld.php,v $
21
// ---------------------------------------------------------------
22
// ==========================================================================
23
// unreference all document in the folder
24
// ==========================================================================
25
include_once (
"FDL/Lib.Dir.php"
);
26
include_once (
"FDL/freedom_util.php"
);
27
// -----------------------------------
28
function
freedom_clearfld
(&
$action
)
29
{
30
// -----------------------------------
31
// insert the documents of $dirid in folder $id
32
// PrintAllHttpVars();
33
// Get all the params
34
$docid
=
GetHttpVars
(
"id"
);
35
$mode
=
GetHttpVars
(
"mode"
,
"latest"
);
36
$return =
GetHttpVars
(
"return"
);
// return action may be folio
37
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
38
39
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
40
$err
=
$doc
->Clear();
41
42
if
(
$err
!=
""
)
$action
->exitError(
$err
);
43
44
redirect(
$action
,
"FREEDOM"
,
"FREEDOM_VIEW&dirid=$docid"
);
45
}
46
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase