Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
onefam_ext_getpref.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 family information 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  * Retrieve families from onefam
22  *
23  * @param Action &$action current action
24  * @global appid Http var : application name
25  */
26 
27 function onefam_ext_getpref(&$action, $idsattr = "ONEFAM_IDS")
28 {
29 
30  $dbaccess = $action->GetParam("FREEDOM_DB");
31 
32  $ids = explode(",", $action->getParam($idsattr));
33  //$umids=explode(",",$action->getParam("ONEFAM_IDS"));
34  $out = array(
35  "ids" => $ids
36  );
37 
38  $action->lay->noparse = true; // no need to parse after - increase performances
39  $action->lay->template = json_encode($out);
40 }
41 
43 {
44  onefam_ext_getpref($action, "ONEFAM_MIDS");
45 }
46 ?>
← centre documentaire © anakeen - published under CC License - Dynacase