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
onefam_ext.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
* extjs main interface
9
*
10
* @author Anakeen 2000
11
* @version $Id: onefam_modpref.php,v 1.8 2006/10/05 09:22:38 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
include_once (
"FDL/Class.Doc.php"
);
20
include_once (
"ONEFAM/onefam_gettreefamily.php"
);
21
include_once (
"ONEFAM/onefam_ext_displayconfig.php"
);
22
23
function
onefam_ext
(
Action
&
$action
)
24
{
25
if
(!file_exists(
'lib/ui/freedom-extui.js'
)) {
26
$err
= _(
"This action requires the installation of Dynacase Extui module"
);
27
$action->
ExitError
(
$err
);
28
}
29
30
$action->lay->set(
'DEBUG'
,
false
);
31
if
(isset($_REQUEST[
'debug'
]) && ($_REQUEST[
'debug'
] ==
'yes'
)) {
32
33
$action->lay->set(
'DEBUG'
,
true
);
34
}
35
$tree =
onefam_getDataTreeFamily
($action);
36
$config =
onefam_ext_getdisplayconfig
($action);
37
$action->lay->set(
'APPLABEL'
, $action->parent->description ? _($action->parent->description) : $action->parent->name);
38
$action->lay->set(
'FAMILYTREE'
, json_encode($tree));
39
$action->lay->set(
'EXT_DISPLAYCONFIG'
, ($config));
40
$action->lay->set(
'caneditmasterfamilies'
, ($action->
canExecute
(
"ONEFAM_EXT_GETMASTERPREF"
) ?
"false"
:
"true"
));
41
$action->lay->set(
'canedituserfamilies'
, ($action->
canExecute
(
"ONEFAM_EXT_GETPREF"
) ?
"false"
:
"true"
));
42
}
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase