Core  3.2
PHP API documentation
 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 // -----------------------------------
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 is a template generator.
global $action
viewfolder(Action &$action, $with_abstract=false, $with_popup=true, $column=false, $slice="-", $sqlfilters=array(), $famid="", $paginationType="none")
Definition: viewfolder.php:34
freedom_view(&$action)
← centre documentaire © anakeen