Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_card.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_card.php,v 1.7 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: freedom_card.php,v 1.7 2005/06/28 08:37:46 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/freedom_card.php,v $
19 // ---------------------------------------------------------------
20 include_once ("FDL/Class.Dir.php");
21 // -----------------------------------
22 // -----------------------------------
24 {
25  // -----------------------------------
26  $docid = GetHttpVars("id");
27  $latest = GetHttpVars("latest");
28  $dbaccess = $action->dbaccess;
30  if (!$doc->isAffected()) $action->exitError(sprintf(_("cannot see unknow reference %s") , $docid));
31 
32  if (($latest == "Y") && ($doc->locked == - 1)) {
33  // get latest revision
34  SetHttpVar("id", $doc->getLatestId());
35  }
36 
37  $action->lay->eSet("TITLE", $doc->getTitle());
38 }
global $action
freedom_card(Action &$action)
SetHttpVar($name, $def)
Definition: Lib.Http.php:150
exitError($texterr, $exit=true, $code="")
$docid
Definition: cleanFamily.php:13
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
$latest
← centre documentaire © anakeen