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

Public Member Functions

 PreInsert ()
 
 PostInit ()
 
 PreUpdate ()
 
 SetKey ($appid, $userid, $styleid="0")
 
 Set ($name, $val, $type=PARAM_GLB, $appid= '')
 
 SetVolatile ($name, $val)
 
 Get ($name, $def="")
 
 GetAll ($appid="", $userid, $styleid="0")
 
 GetUser ($userid=ANONYMOUS_ID, $styleid="")
 
 GetStyle ($styleid, $onlystyle=false)
 
 GetApps ()
 
 GetUParam ($p, $u=ANONYMOUS_ID, $appid="")
 
 DelStatic ($appid)
 
 PostDelete ()
 
 DelAll ($appid="")
 
- 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
 
 $dbtable = "paramv"
 
 $sqlcreate
 
 $buffer = array()
 
- 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 28 of file Class.Param.php.

Member Function Documentation

DelAll (   $appid = "")

Definition at line 220 of file Class.Param.php.

DelStatic (   $appid)

Definition at line 200 of file Class.Param.php.

Get (   $name,
  $def = "" 
)

Definition at line 118 of file Class.Param.php.

GetAll (   $appid = "",
  $userid,
  $styleid = "0" 
)

Definition at line 127 of file Class.Param.php.

GetApps ( )

Definition at line 181 of file Class.Param.php.

GetStyle (   $styleid,
  $onlystyle = false 
)

get list of parameters for a style

Parameters
bool$onlystyleif false return all parameters excepts user parameters with style parameters if true return only parameters redifined by the style
Returns
array of parameters values

Definition at line 169 of file Class.Param.php.

GetUParam (   $p,
  $u = ANONYMOUS_ID,
  $appid = "" 
)

Definition at line 190 of file Class.Param.php.

GetUser (   $userid = ANONYMOUS_ID,
  $styleid = "" 
)

Definition at line 155 of file Class.Param.php.

PostDelete ( )

Definition at line 215 of file Class.Param.php.

PostInit ( )

Definition at line 63 of file Class.Param.php.

PreInsert ( )

Definition at line 57 of file Class.Param.php.

PreUpdate ( )

Definition at line 68 of file Class.Param.php.

+ Here is the call graph for this function:

Set (   $name,
  $val,
  $type = PARAM_GLB,
  $appid = '' 
)

Definition at line 79 of file Class.Param.php.

+ Here is the call graph for this function:

SetKey (   $appid,
  $userid,
  $styleid = "0" 
)

Definition at line 73 of file Class.Param.php.

+ Here is the call graph for this function:

SetVolatile (   $name,
  $val 
)

Definition at line 113 of file Class.Param.php.

Field Documentation

$buffer = array()

Definition at line 55 of file Class.Param.php.

$dbtable = "paramv"

Definition at line 43 of file Class.Param.php.

$fields
Initial value:
= array(
"name",
"type",
"appid",
"val"
)

Definition at line 30 of file Class.Param.php.

$id_fields
Initial value:
= array(
"name",
"type",
"appid"
)

Definition at line 37 of file Class.Param.php.

$sqlcreate
Initial value:
= '
create table paramv (
name varchar(50) not null,
type varchar(21),
appid int4,
val text);
create index paramv_idx2 on paramv(name);
create unique index paramv_idx3 on paramv(name,type,appid);
'

Definition at line 45 of file Class.Param.php.


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