Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
onefam_ext_displayconfig.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  * Retrieve and store ext display config for onefam
9  *
10  * @author Anakeen 2009
11  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
12  * @package FDL
13  * @subpackage
14  */
15 /**
16  */
17 
18 include_once ("FDL/Class.Dir.php");
19 include_once ("FDL/Class.SearchDoc.php");
20 
21 include_once ("FDL/Class.Doc.php");
22 /**
23  * Retrieve ext display config from onefam
24  *
25  * @param Action &$action current action
26  *
27  */
28 
30 {
31 
32  $dbaccess = $action->GetParam("FREEDOM_DB");
33 
34  $config = $action->getParam("ONEFAM_EXT_DISPLAYCONFIG", "{}");
35  //$out=array("config"=>$config);
36  return $config;
37  // $action->lay->noparse=true; // no need to parse after - increase performances
38  // $action->lay->template= json_encode($out);
39 
40 
41 }
42 /**
43  * Set ext display config from onefam
44  *
45  * @param Action &$action current action
46  *
47  */
49 {
50  $config = GetHttpVars("config");
51 
52  $dbaccess = $action->GetParam("FREEDOM_DB");
53 
54  $action->setParamU("ONEFAM_EXT_DISPLAYCONFIG", $config);
55  //$out = array("config"=>$config);
56  $action->lay->noparse = true; // no need to parse after - increase performances
57  $action->lay->template = $config;
58 }
59 ?>
← centre documentaire © anakeen - published under CC License - Dynacase