Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_root.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Display two frames
8  *
9  * @author Anakeen
10  * @version $Id: generic_root.php,v 1.6 2006/11/09 10:52:50 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 include_once ("GENERIC/generic_util.php");
18 {
19 
20  $usage = new ActionUsage($action);
21  $famid = $usage->addRequiredParameter("famid", "id or logical name of the family"); // family restriction
22  $usage->setStrictMode(false);
23  $usage->verify(true);
24 
25  $dbaccess = $action->dbaccess;
26  if ($famid && (!is_numeric($famid))) {
28  }
29  if ($famid != "") {
30  $action->register("DEFAULT_FAMILY", $famid); // for old compatibility
31 
32  }
33  $smode = getSplitMode($action);
34 
35  switch ($smode) {
36  case "H":
37  $action->lay->eset("rows", $action->getParam("GENEA_HEIGHT") . ",*");
38  $action->lay->eset("cols", "");
39  break;
40 
41  case "V":
42  default:
43  $action->lay->eset("cols", $action->getParam("GENEA_WIDTH") . ",*");
44  $action->lay->eset("rows", "");
45  }
46  $action->lay->eset("GTITLE", _($action->parent->short_name));
47  $action->lay->set("famid", urlencode($famid));
48 }
getSplitMode(Action &$action, $famid="")
global $action
Verify arguments for action function.
getFamIdFromName($dbaccess, $name)
getParam($name, $def="")
generic_root(Action &$action)
$dbaccess
Definition: checkVault.php:17
$usage
← centre documentaire © anakeen