|
| Set ($name, &$parent) |
|
| CompleteSet (&$parent) |
|
| Complete () |
|
| Read ($k, $d="") |
|
| Register ($k, $v) |
|
| Unregister ($k) |
|
| ActRead ($k, $d="") |
|
| ActRegister ($k, $v) |
|
| ActUnregister ($k) |
|
| PreInsert () |
|
| PreUpdate () |
|
| GetParam ($name, $def="") |
|
| setParamU ($name, $val) |
|
| GetImageUrl ($name, $detectstyle=true, $size=null) |
|
| GetFilteredImageUrl ($name) |
|
| GetImageFile ($name) |
|
| AddLogMsg ($msg, $cut=80) |
|
| AddWarningMsg ($msg) |
|
| AddActionDone ($actdone, $arg="") |
|
| ClearActionDone () |
|
| GetActionDone (&$actdone, &$arg) |
|
| GetIcon ($name, $text, $width="", $height="") |
|
| GetLayoutFile ($layname) |
|
| Exists ($name, $idapp, $id_func= '') |
|
| HasPermission ($acl_name="", $app_name="") |
|
| canExecute ($actname, $appid="") |
|
| GetAcl ($actname, $appid="") |
|
| execute () |
|
| ExitError ($texterr) |
|
| exitForbidden ($texterr) |
|
| ClearError () |
|
| Init ($app, $action_desc, $update=FALSE) |
|
| Text ($code, $args=NULL) |
|
| debug ($msg) |
|
| info ($msg) |
|
| warning ($msg) |
|
| error ($msg) |
|
| fatal ($msg) |
|
| AppInstalled ($appname) |
|
| GetAvailableApplication () |
|
| __construct ($dbaccess= '', $id= '', $res= '', $dbid=0) |
|
| Select ($id) |
|
| getValues () |
|
| AffectColumn ($fields) |
|
| Affect ($array) |
|
| isAffected () |
|
| Complete () |
|
| PreInsert () |
|
| PostInsert () |
|
| PreUpdate () |
|
| PostUpdate () |
|
| PreDelete () |
|
| PostDelete () |
|
| PreSelect ($id) |
|
| PostSelect ($id) |
|
| Add ($nopost=false, $nopre=false) |
|
| Modify ($nopost=false, $sfields="", $nopre=false) |
|
| Delete ($nopost=false) |
|
| Adds (&$tcopy, $nopost=false) |
|
| lw ($prop) |
|
| CloseConnect () |
|
| Create ($nopost=false) |
|
| PostInit () |
|
| init_dbid () |
|
| exec_query ($sql, $lvl=0, $prepare=false) |
|
| numrows () |
|
| fetch_array ($c, $type=PGSQL_ASSOC) |
|
| Update () |
|
| savePoint ($point) |
|
| rollbackPoint ($point) |
|
| commitPoint ($point) |
|
Definition at line 27 of file Class.Action.php.
AddActionDone |
( |
|
$actdone, |
|
|
|
$arg = "" |
|
) |
| |
store action done to be use in refreshing main window interface
- Parameters
-
string | $actdone | the code of action |
string | $args | the argument of action |
Definition at line 263 of file Class.Action.php.
AddLogMsg |
( |
|
$msg, |
|
|
|
$cut = 80 |
|
) |
| |
verify if the application is really installed in localhost
- Returns
- bool true if application is installed
Definition at line 622 of file Class.Action.php.
canExecute |
( |
|
$actname, |
|
|
|
$appid = "" |
|
) |
| |
return true if user can execute the specified action
- Parameters
-
string | $actname | action name |
string | $appid | application name or id (default itself) |
- Returns
- string error message (empty if no error)
Definition at line 344 of file Class.Action.php.
clear action done to be use in refreshing main window interface
- Parameters
-
string | $actdone | the code of action |
string | $args | the argument of action |
Definition at line 279 of file Class.Action.php.
execute the action
- Returns
- string the composed associated layout
Definition at line 383 of file Class.Action.php.
Exists |
( |
|
$name, |
|
|
|
$idapp, |
|
|
|
$id_func = '' |
|
) |
| |
display error to user and stop execution
- Parameters
-
string | $texterr | the error message |
Definition at line 466 of file Class.Action.php.
exitForbidden |
( |
|
$texterr | ) |
|
GetAcl |
( |
|
$actname, |
|
|
|
$appid = "" |
|
) |
| |
return id from name for an application
- Parameters
-
string | $actname | action name |
string | $appid | application id (default itself) |
- Returns
- string (false if not found)
Definition at line 369 of file Class.Action.php.
GetActionDone |
( |
& |
$actdone, |
|
|
& |
$arg |
|
) |
| |
get action code and argument for action code done to be use in refreshing main window interface
- Parameters
-
string | &$actdone | the code of action |
string | &$args | the argument of action |
Definition at line 290 of file Class.Action.php.
static getArgument |
( |
|
$k, |
|
|
|
$def = '' |
|
) |
| |
|
static |
retrieve the value of an argument fot the action in web mode the value comes from http variable and in shell mode comes from args variable
- Parameters
-
string | $k | the argument name |
any | $def | default value if no argument is not set |
Definition at line 585 of file Class.Action.php.
GetAvailableApplication |
( |
| ) |
|
return available Applications for current user
- Returns
- array
Definition at line 633 of file Class.Action.php.
GetFilteredImageUrl |
( |
|
$name | ) |
|
GetIcon |
( |
|
$name, |
|
|
|
$text, |
|
|
|
$width = "" , |
|
|
|
$height = "" |
|
) |
| |
GetImageUrl |
( |
|
$name, |
|
|
|
$detectstyle = true , |
|
|
|
$size = null |
|
) |
| |
GetLayoutFile |
( |
|
$layname | ) |
|
GetParam |
( |
|
$name, |
|
|
|
$def = "" |
|
) |
| |
HasPermission |
( |
|
$acl_name = "" , |
|
|
|
$app_name = "" |
|
) |
| |
Init |
( |
|
$app, |
|
|
|
$action_desc, |
|
|
|
$update = FALSE |
|
) |
| |
setParamU |
( |
|
$name, |
|
|
|
$val |
|
) |
| |
set a new value for a user parameter
- Parameters
-
string | $name | parameter key |
string | $val | new value for the parameter |
- Returns
- string error message if not succeeed else empty string
Definition at line 218 of file Class.Action.php.
Text |
( |
|
$code, |
|
|
|
$args = NULL |
|
) |
| |
Initial value:= array(
"name" => array(
"libelle" => "Nom",
"type" => "TXT"
)
)
Definition at line 93 of file Class.Action.php.
Initial value:= array(
"criteria" => "",
"order_by" => "name"
)
Definition at line 88 of file Class.Action.php.
Initial value:= array(
"id",
"id_application",
"name",
"short_name",
"long_name",
"script",
"function",
"layout",
"available",
"acl",
"grant_level",
"openaccess",
"root",
"icon",
"toc",
"father",
"toc_order"
)
Definition at line 29 of file Class.Action.php.
Initial value:= array(
"id",
"id_application",
"name"
)
Definition at line 53 of file Class.Action.php.
Initial value:= '
create table action (id int not null,
primary key (id),
id_application int not null,
name varchar(30) not null,
short_name text ,
long_name text,
script text,
function text,
layout text ,
available varchar(3),
acl varchar(20),
grant_level int,
openaccess char,
root char,
icon varchar(100),
toc char,
father int ,
toc_order int);
create index action_idx1 on action(id);
create index action_idx2 on action(id_application);
create index action_idx3 on action(name);
create sequence SEQ_ID_ACTION;
'
Definition at line 61 of file Class.Action.php.
The documentation for this class was generated from the following file: