Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_duplicate.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: generic_duplicate.php,v 1.9 2007/11/27 16:36:19 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: generic_duplicate.php,v 1.9 2007/11/27 16:36:19 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Generic/generic_duplicate.php,v $
19 // ---------------------------------------------------------------
20 include_once ("FDL/duplicate.php");
21 
22 include_once ("FDL/Class.Dir.php");
23 include_once ("GENERIC/generic_util.php");
24 // -----------------------------------
26 {
27  // -----------------------------------
28  // Get all the params
29  $dirid = GetHttpVars("dirid"); // where to duplicate
30  $docid = GetHttpVars("id", 0); // doc to duplicate
31  if ($dirid == "") {
32  $dbaccess = $action->dbaccess;
33  /*
34  * @var Doc $fdoc
35  */
36  $fdoc = new_Doc($dbaccess, $docid);
37 
38  $dirid = $fdoc->prelid;
39  }
40  $copy = duplicate($action, $dirid, $docid);
41 
42  redirect($action, "FDL", "FDL_CARD&refreshfld=Y&id=" . $copy->id, $action->GetParam("CORE_STANDURL"));
43 }
global $action
generic_duplicate(Action &$action)
$docid
Definition: cleanFamily.php:13
new_Doc($dbaccess, $id= '', $latest=false)
duplicate(Action &$action, $dirid, $docid, $temporary=false)
Definition: duplicate.php:19
$dbaccess
Definition: checkVault.php:17
← centre documentaire © anakeen