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
fdl_familyschema.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
* View family schema for import
9
*
10
* @author Anakeen 2000
11
* @version $Id: fdl_css.php,v 1.6 2007/11/08 15:53:59 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage
15
*/
16
/**
17
*/
18
/**
19
* View scheam family
20
* @param Action &$action current action
21
* @global id Http var : family identificator to see
22
* @global latest Http var : (Y|N|L|P) if Y force view latest revision, L : latest fixed revision, P : previous revision
23
* @global state Http var : to view document in latest fixed state (only if revision > 0)
24
* @global abstract Http var : (Y|N) if Y view only abstract attribute
25
* @global props Http var : (Y|N) if Y view properties also
26
* @global zonebodycard Http var : if set, view other specific representation
27
* @global vid Http var : if set, view represention describe in view control (can be use only if doc has controlled view)
28
* @global ulink Http var : (Y|N)if N hyperlink are disabled
29
* @global target Http var : is set target of hyperlink can change (default _self)
30
* @global inline Http var : (Y|N) set to Y for binary template. View in navigator
31
* @global reload Http var : (Y|N) if Y update freedom folders in client navigator
32
* @global dochead Http var : (Y|N) if N don't see head of document (not title and icon)
33
*/
34
include_once (
"FDL/Class.Doc.php"
);
35
// -----------------------------------
36
function
fdl_familyschema
(&
$action
)
37
{
38
// -----------------------------------
39
$docid
= getHttpVars(
"id"
);
40
$dbaccess
=
$action
->getParam(
"FREEDOM_DB"
);
41
42
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
43
if
(!
$doc
->isAlive())
$action
->exitError(_(
"no family identificator"
));
44
if
(
$doc
->doctype !=
'C'
)
$action
->exitError(sprintf(_(
"document %s is not a family"
) ,
$docid
));
45
46
header(
'Content-Type: text/xml; charset="utf-8"'
);
47
$action
->lay->noparse =
true
;
48
$action
->lay->template =
$doc
->getXmlSchema();
49
}
50
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase