Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
freedom_view.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_view.php,v 1.12 2006/11/22 11:13:30 marc Exp $
11
* @package FDL
12
* @subpackage GED
13
*/
14
/**
15
*/
16
17
include_once (
'FDL/viewfolder.php'
);
18
// -----------------------------------
19
// -----------------------------------
20
function
freedom_view
(&
$action
)
21
{
22
// -----------------------------------
23
// redirect layout icon if needed
24
$prefview = getHttpvars(
"view"
);
25
if
($prefview ==
""
) $prefview =
$action
->getParam(
"FREEDOM_VIEW"
,
"list"
);
26
switch
($prefview) {
27
case
"detail"
:
28
$action
->layout =
$action
->GetLayoutFile(
"freedom_listdetail.xml"
);
29
$action
->lay =
new
Layout
(
$action
->layout,
$action
);
30
viewfolder
(
$action
, 2);
31
break
;
32
33
case
"icon"
:
34
$action
->layout =
$action
->GetLayoutFile(
"freedom_icons.xml"
);
35
$action
->lay =
new
Layout
(
$action
->layout,
$action
);
36
viewfolder
(
$action
,
false
);
37
break
;
38
39
case
"column"
:
40
$action
->layout =
$action
->GetLayoutFile(
"freedom_column.xml"
);
41
$action
->lay =
new
Layout
(
$action
->layout,
$action
);
42
viewfolder
(
$action
,
false
,
true
,
true
);
43
break
;
44
45
case
"rss"
:
46
$action
->layout =
$action
->GetLayoutFile(
"freedom_rss.xml"
);
47
$action
->lay =
new
Layout
(
$action
->layout,
$action
);
48
setHttpVar(
"xml"
, 1);
49
header(
'Content-type: text/xml; charset=utf-8'
);
50
$action
->lay->setEncoding(
"utf-8"
);
51
viewfolder
(
$action
,
false
,
false
);
52
break
;
53
54
default
:
55
$action
->layout =
$action
->GetLayoutFile(
"freedom_list.xml"
);
56
$action
->lay =
new
Layout
(
$action
->layout,
$action
);
57
viewfolder
(
$action
,
false
);
58
break
;
59
}
60
}
61
?>
Layout
Layout is a template generator.
Definition:
Class.Layout.php:69
$action
global $action
Definition:
accountRefreshGroup.php:16
viewfolder
viewfolder(Action &$action, $with_abstract=false, $with_popup=true, $column=false, $slice="-", $sqlfilters=array(), $famid="", $paginationType="none")
Definition:
viewfolder.php:34
freedom_view
freedom_view(&$action)
Definition:
freedom_view.php:20
← centre documentaire
© anakeen