Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
fdl_familyschema.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * View family schema for import
8  *
9  * @author Anakeen
10  * @version $Id: fdl_css.php,v 1.6 2007/11/08 15:53:59 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 /**
17  * View scheam family
18  * @param Action &$action current action
19  * @global string $id Http var : family identifier to see
20  */
21 include_once ("FDL/Class.Doc.php");
22 // -----------------------------------
24 {
25  // -----------------------------------
26  $docid = getHttpVars("id");
27  $dbaccess = $action->dbaccess;
28  /*
29  * @var DocFam $doc
30  */
32  if (!$doc->isAlive()) $action->exitError(_("no family identificator"));
33  if ($doc->doctype != 'C') $action->exitError(sprintf(_("document %s is not a family") , $docid));
34 
35  header('Content-Type: text/xml; charset="utf-8"');
36  $action->lay->noparse = true;
37  $action->lay->template = $doc->getXmlSchema();
38 }
global $action
exitError($texterr, $exit=true, $code="")
$docid
Definition: cleanFamily.php:13
getHttpVars($name, $def="", $scope="all")
Definition: Lib.Http.php:124
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
fdl_familyschema(Action &$action)
← centre documentaire © anakeen