Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
editoneenumitems.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * @param Action $action
8  */
10 {
11  $usage = new ActionUsage($action);
12  $famid = $usage->addRequiredParameter("famid", "Family id");
13  $enumid = $usage->addRequiredParameter("enumid", "Enum id");
14 
15  $usage->setStrictMode(false);
16  //Maybe use exception and try vatch to send info in json for datatable
17  $usage->verify();
18 
19  $action->lay->eset("famid", $famid);
20  $action->lay->eset("enumid", $enumid);
21 
22  $action->parent->addCssRef("css/dcp/jquery-ui.css");
23  $action->parent->addCssRef("lib/tipsy/src/stylesheets/tipsy.css");
24  $action->parent->addCssRef("lib/jquery-dataTables/css/jquery.dataTables.css");
25  $action->parent->addCssRef("ACCESS:user_access.css");
26  $action->parent->addCssRef("FDL:editoneenumitems.css");
27 
28  $action->parent->addJsRef("lib/jquery/jquery.js");
29  $action->parent->addJsRef("lib/tipsy/src/javascripts/jquery.tipsy.js");
30  $action->parent->addJsRef("lib/jquery-ui/js/jquery-ui.js");
31  $action->parent->addJsRef("lib/jquery-dataTables/js/jquery.dataTables.js");
32  $action->parent->addJsRef("FDL:editenumitemswidget.js", true);
33  $action->parent->addJsRef("FDL:editoneenumitems.js", true);
34 }
global $action
Verify arguments for action function.
editoneenumitems(Action &$action)
$usage
← centre documentaire © anakeen