Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DocEnum Class Reference
+ Inheritance diagram for DocEnum:
+ Collaboration diagram for DocEnum:

Public Member Functions

 postUpdate ()
 
 postInsert ()
 
 preUpdate ()
 
 preInsert ()
 
 shiftOrder ($n)
 
 exists ()
 
- 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)
 

Static Public Member Functions

static getFamilyEnums ($famId, $attrid)
 
static getDisabledKeys ($famId, $attrid)
 
static addEnum ($famId, $attrid, EnumStructure $enumStruct)
 
static modifyEnum ($famId, $attrid, EnumStructure $enumStruct)
 
static getMoFilename ($famId, $lang)
 
static changeLocale ($famId, $attrid, $enumId, $lang, $label)
 

Data Fields

 $fields
 
 $famid
 
 $attrid
 
 $key
 
 $label
 
 $eorder
 
 $parentkey
 
 $id_fields
 
 $disabled
 
 $dbtable = "docenum"
 
 $sqlcreate
 
- 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
 

Protected Member Functions

 consolidateOrder ()
 
 setOrder ($beforeThan)
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Protected Attributes

 $needChangeOrder = false
 

Additional Inherited Members

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

Detailed Description

Document attribute enumerate

Definition at line 11 of file Class.DocEnum.php.

Member Function Documentation

static addEnum (   $famId,
  $attrid,
EnumStructure  $enumStruct 
)
static

Definition at line 182 of file Class.DocEnum.php.

+ Here is the call graph for this function:

static changeLocale (   $famId,
  $attrid,
  $enumId,
  $lang,
  $label 
)
static
Parameters
$famId
$attrid
$enumId
$lang
$label
Exceptions
Dcp\Exception

Definition at line 272 of file Class.DocEnum.php.

+ Here is the call graph for this function:

consolidateOrder ( )
protected

get last order

Definition at line 106 of file Class.DocEnum.php.

+ Here is the call graph for this function:

exists ( )

Definition at line 130 of file Class.DocEnum.php.

+ Here is the call graph for this function:

static getDisabledKeys (   $famId,
  $attrid 
)
static

Definition at line 149 of file Class.DocEnum.php.

+ Here is the call graph for this function:

static getFamilyEnums (   $famId,
  $attrid 
)
static

Definition at line 139 of file Class.DocEnum.php.

+ Here is the call graph for this function:

static getMoFilename (   $famId,
  $lang 
)
static

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

+ Here is the call graph for this function:

static modifyEnum (   $famId,
  $attrid,
EnumStructure  $enumStruct 
)
static

Definition at line 221 of file Class.DocEnum.php.

+ Here is the call graph for this function:

postInsert ( )

Definition at line 86 of file Class.DocEnum.php.

+ Here is the call graph for this function:

postUpdate ( )

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

+ Here is the call graph for this function:

preInsert ( )

Definition at line 98 of file Class.DocEnum.php.

+ Here is the call graph for this function:

preUpdate ( )

Definition at line 93 of file Class.DocEnum.php.

+ Here is the call graph for this function:

setOrder (   $beforeThan)
protected

Definition at line 161 of file Class.DocEnum.php.

+ Here is the call graph for this function:

shiftOrder (   $n)

Definition at line 116 of file Class.DocEnum.php.

+ Here is the call graph for this function:

Field Documentation

$attrid

identifier of family attribute which used enum text

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

$dbtable = "docenum"

Definition at line 64 of file Class.DocEnum.php.

$disabled

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

$eorder

order to display list enum items string

Definition at line 47 of file Class.DocEnum.php.

$famid

identifier of family of enum int

Definition at line 27 of file Class.DocEnum.php.

$fields
Initial value:
= array(
"famid",
"attrid",
"key",
"label",
"parentkey",
"disabled",
"eorder"
)

Definition at line 14 of file Class.DocEnum.php.

$id_fields
Initial value:
= array(
"famid",
"attrid",
"key"
)

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

$key

enum value string

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

$label

default label key string

Definition at line 42 of file Class.DocEnum.php.

$needChangeOrder = false
protected

Definition at line 59 of file Class.DocEnum.php.

$parentkey

key of parent enum int

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

$sqlcreate
Initial value:
= '
create table docenum (
famid int not null,
attrid text not null,
key text,
label text,
parentkey text,
disabled bool,
eorder int);
create index if_docenum on docenum(famid, attrid);
create unique index i_docenum on docenum(famid, attrid, key);
'

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


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