Core  3.2
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=self::PARAM_GLB, $appid= '')
 
 SetVolatile ($name, $val)
 
 Get ($name, $def="")
 
 GetAll ($appid="", $userid, $styleid="0")
 
 GetUser ($userid=Account::ANONYMOUS_ID, $styleid="")
 
 GetStyle ($styleid, $onlystyle=false)
 
 GetApps ()
 
 GetUParam ($p, $u=Account::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, $reset=true)
 
 affect ($array, $more=false, $reset=true)
 
 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 ()
 
 setError ($moreerr= '')
 
 autoUpdate ()
 
 savePoint ($point)
 
 lockPoint ($exclusiveLock, $exclusiveLockPrefix= '')
 
 setMasterLock ($useLock)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

const PARAM_APP = "A"
 
const PARAM_GLB = "G"
 
const PARAM_USER = "U"
 
const PARAM_STYLE = "S"
 
 $fields
 
 $id_fields
 
 $name
 
 $type
 
 $appid
 
 $val
 
 $dbtable = "paramv"
 
 $sqlcreate
 
 $buffer = array()
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $id_fields
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = ''
 
 $debug = false
 
 $sqlcreate
 
 $sqlinit
 
 $log
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 
static $lockpoint = array()
 
static $sqlStrict = null
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Detailed Description

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

Member Function Documentation

DelAll (   $appid = "")

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

DelStatic (   $appid)

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

Get (   $name,
  $def = "" 
)

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

+ Here is the call graph for this function:

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

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

+ Here is the call graph for this function:

GetApps ( )

Definition at line 214 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 202 of file Class.Param.php.

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

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

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

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

PostDelete ( )

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

PostInit ( )

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

PreInsert ( )

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

PreUpdate ( )

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

+ Here is the call graph for this function:

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

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

+ Here is the call graph for this function:

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

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

+ Here is the call graph for this function:

SetVolatile (   $name,
  $val 
)

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

Field Documentation

$appid

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

$buffer = array()

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

$dbtable = "paramv"

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

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

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

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

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

$name

Definition at line 50 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 56 of file Class.Param.php.

$type

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

$val

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

const PARAM_APP = "A"

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

const PARAM_GLB = "G"

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

const PARAM_STYLE = "S"

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

const PARAM_USER = "U"

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


The documentation for this class was generated from the following file:
← centre documentaire © anakeen