Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_modprefs.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Modify family preferences
8  *
9  * @author Anakeen
10  * @version $Id: generic_modprefs.php,v 1.2 2007/05/04 16:11:40 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 
17 include_once ("FDL/Class.Doc.php");
18 include_once ("GENERIC/generic_util.php");
20 {
21 
22  $famid = GetHttpVars("famid"); // family id
23  $dispo = GetHttpVars("dispo"); // last searched
24  $letters = GetHttpVars("letters"); // want tab letters
25  $inherit = GetHttpVars("inherit"); // search in inherit
26  $dbaccess = $action->dbaccess;
27  $fdoc = new_doc($dbaccess, $famid);
28  if (!$fdoc->isAlive()) {
29  $action->exitError(sprintf(_("Family (#%s) not exists") , $famid));
30  }
31  $split = $visu = '';
32  switch ($dispo) {
33  case 1:
34  $split = 'V';
35  $visu = 'abstract';
36  break;
37 
38  case 2:
39  $split = 'H';
40  $visu = 'column';
41  break;
42 
43  case 3:
44  $split = 'V';
45  $visu = 'column';
46  break;
47 
48  case 4:
49  $split = 'H';
50  $visu = 'abstract';
51  break;
52  }
53  if ($dispo > 0) {
54  setSplitMode($action, $famid, $split);
55  setViewMode($action, $famid, $visu);
56  }
57 
58  if ($letters == 1) setTabLetter($action, $famid, 'Y');
59  else setTabLetter($action, $famid, 'N');
60  if ($inherit == 1) setInherit($action, $famid, 'Y');
61  else setInherit($action, $famid, 'N');
62 
63  $action->lay->eset("famname", $fdoc->getPropertyValue("name"));
64 }
global $action
setSplitMode(Action &$action, $famid, $split)
generic_modprefs(Action &$action)
setViewMode(&$action, $famid, $view)
exitError($texterr, $exit=true, $code="")
setTabLetter(&$action, $famid, $letter)
$dbaccess
Definition: checkVault.php:17
setInherit(&$action, $famid, $inherit)
← centre documentaire © anakeen