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
freedom_applybatch.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
* Use to help to the construction of batch document
9
*
10
* @author Anakeen 2005
11
* @version $Id: freedom_applybatch.php,v 1.7 2008/08/14 09:59:14 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage GED
15
*/
16
/**
17
*/
18
19
include_once (
"FDL/Class.Doc.php"
);
20
include_once (
"FDL/Lib.Dir.php"
);
21
/**
22
* Choose a batch document
23
* @param Action &$action current action
24
* @global id Http var : folder identificator to use to construct batch
25
*/
26
function
freedom_applybatch
(&
$action
)
27
{
28
29
$dirid =
GetHttpVars
(
"id"
);
30
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
31
$bdoc =
new_Doc
(
$dbaccess
,
"BATCH"
);
32
$action
->parent->AddJsRef(
$action
->GetParam(
"CORE_JSURL"
) .
"/subwindow.js"
);
33
34
$tb = $bdoc->getChildFam();
35
foreach
($tb as $k => $v) {
36
$tb[$k][
"iconsrc"
] = $bdoc->getIcon($v[
"icon"
]);
37
38
$fa = new_doc(
$dbaccess
, $v[
"id"
]);
39
$la
= $fa->getActionAttributes();
40
$ta
= array();
41
if
(
$la
) {
42
foreach
(
$la
as $ka => $va) {
43
$ta
[] = $va->getLabel();
44
}
45
}
46
$tb[$k][
"actions"
] = implode(
",<br>"
,
$ta
);
47
}
48
49
$action
->lay->setBlockData(
"BATCHFAMS"
, $tb);
50
$action
->lay->set(
"dirid"
, $dirid);
51
}
52
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase