Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Application Class Reference
+ Inheritance diagram for Application:
+ Collaboration diagram for Application:

Public Member Functions

 Set ($name, &$parent, $session="", $autoinit=false)
 
 Complete ()
 
 SetSession (&$session)
 
 PreInsert ()
 
 PreUpdate ()
 
 Exists ($app_name, $id_application= '')
 
 AddRessourceRef ($type, $ref, $needparse)
 
 AddCssRef ($ref, $needparse=false)
 
 AddJsRef ($ref, $needparse=false)
 
 AddJsCode ($code)
 
 AddLogMsg ($code, $cut=80)
 
 AddWarningMsg ($code)
 
 GetJsRef ()
 
 GetJsCode ()
 
 GetLogMsg ()
 
 ClearLogMsg ()
 
 GetWarningMsg ()
 
 ClearWarningMsg ()
 
 AddCssCode ($code)
 
 GetCssRef ()
 
 GetCssCode ()
 
 HasPermission ($acl_name, $app_name="")
 
 InitStyle ($init=true)
 
 SetLayoutVars ($lay)
 
 GetRootApp ()
 
 GetImageFile ($img)
 
 GetImageUrl ($img, $detectstyle=true, $size=null)
 
 ImageFilterColor ($image, $fcol, $newcol, $out=null)
 
 GetFilteredImageUrl ($imgf)
 
 GetLayoutFile ($layname)
 
 OldGetLayoutFile ($layname)
 
 SetParam ($key, $val)
 
 SetParamU ($key, $val)
 
 SetParamDef ($key, $val)
 
 SetVolatileParam ($key, $val)
 
 GetParam ($key, $default="")
 
 InitAllParam ($tparam, $update=false)
 
 GetAllParam ()
 
 InitApp ($name, $update=FALSE)
 
 UpdateApp ()
 
 UpdateAllApp ()
 
 DeleteApp ()
 
 Text ($code, $args=NULL)
 
 UpdateUserAcl ($iduser)
 
 GetIdFromName ($name)
 
 hasParent ()
 
- Public Member Functions inherited from DbObj
 __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)
 

Data Fields

 $fields
 
 $id_fields
 
 $rootdir = ''
 
 $fulltextfields
 
 $sqlcreate
 
 $dbtable = "application"
 
 $def
 
 $criterias
 
 $parent = ""
 
 $param
 
 $permission = null
 
 $jsref = array()
 
 $jscode = array()
 
 $logmsg = array()
 
 $cssref = array()
 
 $csscode = array()
 
 $noimage = "CORE/Images/noimage.png"
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

Definition at line 36 of file Appmng/Class.Application.php.

Member Function Documentation

AddCssCode (   $code)

Definition at line 425 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddCssRef (   $ref,
  $needparse = false 
)

Definition at line 336 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddJsCode (   $code)

Definition at line 346 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddJsRef (   $ref,
  $needparse = false 
)

Definition at line 341 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddLogMsg (   $code,
  $cut = 80 
)

Definition at line 356 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddRessourceRef (   $type,
  $ref,
  $needparse 
)

Add a ressource (JS/CSS) to the page

Parameters
string$type'js' or 'css'
string$refthe ressource reference
boolean$needparseshould the ressource be parsed (default false)

Definition at line 300 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

AddWarningMsg (   $code)

Definition at line 374 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

ClearLogMsg ( )

Definition at line 411 of file Appmng/Class.Application.php.

ClearWarningMsg ( )

Definition at line 420 of file Appmng/Class.Application.php.

Complete ( )

Definition at line 180 of file Appmng/Class.Application.php.

DeleteApp ( )

Definition at line 900 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

Exists (   $app_name,
  $id_application = '' 
)

Definition at line 216 of file Appmng/Class.Application.php.

GetAllParam ( )

Definition at line 769 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetCssCode ( )

Definition at line 443 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetCssRef ( )

Definition at line 434 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetFilteredImageUrl (   $imgf)

Definition at line 620 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetIdFromName (   $name)

return id from name for an application

Parameters
string$name
Returns
int (0 if not found)

Definition at line 964 of file Appmng/Class.Application.php.

GetImageFile (   $img)

Definition at line 563 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetImageUrl (   $img,
  $detectstyle = true,
  $size = null 
)

Definition at line 570 of file Appmng/Class.Application.php.

GetJsCode ( )

Definition at line 397 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetJsRef ( )

Definition at line 388 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetLayoutFile (   $layname)

Definition at line 654 of file Appmng/Class.Application.php.

GetLogMsg ( )

Definition at line 406 of file Appmng/Class.Application.php.

GetParam (   $key,
  $default = "" 
)

Definition at line 739 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

GetRootApp ( )

Definition at line 554 of file Appmng/Class.Application.php.

GetWarningMsg ( )

Definition at line 415 of file Appmng/Class.Application.php.

hasParent ( )

Definition at line 973 of file Appmng/Class.Application.php.

HasPermission (   $acl_name,
  $app_name = "" 
)

Test permission for currennt user in current application

Parameters
string$acl_nameacl name to test
string$app_nameapplication if test for other application
Returns
bool true if permission granted

Definition at line 458 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

ImageFilterColor (   $image,
  $fcol,
  $newcol,
  $out = null 
)

Definition at line 608 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

InitAllParam (   $tparam,
  $update = false 
)

Definition at line 752 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

InitApp (   $name,
  $update = FALSE 
)

Definition at line 780 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

InitStyle (   $init = true)

Definition at line 509 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

OldGetLayoutFile (   $layname)

Definition at line 675 of file Appmng/Class.Application.php.

PreInsert ( )

Definition at line 198 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

PreUpdate ( )

Definition at line 210 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

Set (   $name,
$parent,
  $session = "",
  $autoinit = false 
)

Definition at line 112 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

SetLayoutVars (   $lay)

Definition at line 547 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

SetParam (   $key,
  $val 
)

Definition at line 688 of file Appmng/Class.Application.php.

SetParamDef (   $key,
  $val 
)

Definition at line 709 of file Appmng/Class.Application.php.

SetParamU (   $key,
  $val 
)

set user parameter for current user

Parameters
string$keyparameter identificator
string$valvalue
Returns
void

Definition at line 705 of file Appmng/Class.Application.php.

SetSession ( $session)

Definition at line 184 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

SetVolatileParam (   $key,
  $val 
)

Definition at line 734 of file Appmng/Class.Application.php.

Text (   $code,
  $args = NULL 
)

Definition at line 930 of file Appmng/Class.Application.php.

UpdateAllApp ( )

Definition at line 886 of file Appmng/Class.Application.php.

UpdateApp ( )

Definition at line 880 of file Appmng/Class.Application.php.

+ Here is the call graph for this function:

UpdateUserAcl (   $iduser)

Definition at line 936 of file Appmng/Class.Application.php.

Field Documentation

$criterias
Initial value:
= array(
"name" => array(
"libelle" => "Nom",
"type" => "TXT"
)
)

Definition at line 94 of file Appmng/Class.Application.php.

$csscode = array()

Definition at line 110 of file Appmng/Class.Application.php.

$cssref = array()

Definition at line 109 of file Appmng/Class.Application.php.

$dbtable = "application"

Definition at line 87 of file Appmng/Class.Application.php.

$def
Initial value:
= array(
"criteria" => "",
"order_by" => "name"
)

Definition at line 89 of file Appmng/Class.Application.php.

$fields
Initial value:
= array(
"id",
"name",
"short_name",
"description",
"access_free",
"available",
"icon",
"displayable",
"with_frame",
"childof",
"objectclass",
"ssl",
"machine",
"iorder",
"tag"
)

Definition at line 38 of file Appmng/Class.Application.php.

$fulltextfields
Initial value:
= array(
"name",
"short_name",
"description"
)

Definition at line 60 of file Appmng/Class.Application.php.

$id_fields
Initial value:
= array(
"id"
)

Definition at line 56 of file Appmng/Class.Application.php.

$jscode = array()

Definition at line 106 of file Appmng/Class.Application.php.

$jsref = array()

Definition at line 105 of file Appmng/Class.Application.php.

$logmsg = array()

Definition at line 107 of file Appmng/Class.Application.php.

$noimage = "CORE/Images/noimage.png"

Definition at line 569 of file Appmng/Class.Application.php.

$param

Definition at line 103 of file Appmng/Class.Application.php.

$parent = ""

Definition at line 101 of file Appmng/Class.Application.php.

$permission = null

Definition at line 104 of file Appmng/Class.Application.php.

$rootdir = ''

Definition at line 59 of file Appmng/Class.Application.php.

$sqlcreate
Initial value:
= '
create table application ( id int not null,
primary key (id),
name varchar(20) not null,
short_name text,
description text ,
access_free varchar(20),
available char,
icon text,
displayable char,
with_frame char,
childof varchar(20),
objectclass char,
ssl char,
machine text,
iorder int,
tag text);
create index application_idx1 on application(id);
create index application_idx2 on application(name);
create sequence SEQ_ID_APPLICATION start 10;
'

Definition at line 65 of file Appmng/Class.Application.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase