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

Public Member Functions

 preInsert ()
 
 unattachFromOrigin ($docid, $originid, &$c=0)
 
 unattachAll ($docid, &$c)
 
 unattachDocument ($docid, $timerid)
 
 getActionsToExecute ()
 
- 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

 $fields
 
 $sup_fields
 
 $id
 
 $tododate
 
 $level
 
 $timerid
 
 $docid
 
 $referencedate
 
 $donedate
 
 $attachdate
 
 $result
 
 $actions
 
 $title
 
 $id_fields
 
 $dbtable = "doctimer"
 
 $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
 

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 17 of file Class.DocTimer.php.

Member Function Documentation

getActionsToExecute ( )

get all actions need to be executed now

Definition at line 195 of file Class.DocTimer.php.

+ Here is the call graph for this function:

preInsert ( )

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

unattachAll (   $docid,
$c 
)

delete all timers for a document

Parameters
int$docidinitial doc identifier to detach
int&$ccount of deletion
Returns
string error - empty if no error -

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

+ Here is the call graph for this function:

unattachDocument (   $docid,
  $timerid 
)

delete a specific timer for a document

Parameters
int$docidinitial doc identifier to detach
int$timeridtimerc identifier to detach
Returns
string error - empty if no error -

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

+ Here is the call graph for this function:

unattachFromOrigin (   $docid,
  $originid,
$c = 0 
)

delete all timers which comes from same origin

Parameters
int$docidinitial doc identifier to detach
int$originidinitial origin id
int&$ccount of deletion
Returns
string error - empty if no error -

Definition at line 137 of file Class.DocTimer.php.

+ Here is the call graph for this function:

Field Documentation

$actions

Actions to be executed string $actions

Definition at line 88 of file Class.DocTimer.php.

$attachdate

Attach date to document string $attachdate

Definition at line 78 of file Class.DocTimer.php.

$dbtable = "doctimer"

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

Document identifier int $docid

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

$donedate

Executed date string $donedate

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

$fields
Initial value:
= array(
"timerid",
"level",
"originid",
"docid",
"title",
"fromid",
"attachdate",
"referencedate",
"tododate",
"donedate",
"actions",
"result"
)

Definition at line 19 of file Class.DocTimer.php.

$id

identifier of timer int

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

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

Definition at line 94 of file Class.DocTimer.php.

$level

level of timer (number of iterations) int

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

$referencedate

Reference date to compute process execution date string $referencedate

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

$result

Action result string $result

Definition at line 83 of file Class.DocTimer.php.

$sqlcreate
Initial value:
= "
create table doctimer ( id serial,
timerid int not null,
level int not null default 0,
originid int,
docid int not null,
title text,
fromid int not null,
attachdate timestamp,
referencedate timestamp,
tododate timestamp,
donedate timestamp,
actions text,
result text );
"

Definition at line 100 of file Class.DocTimer.php.

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

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

$timerid

Timer identifier int $timerid

Definition at line 58 of file Class.DocTimer.php.

$title

Timer title string title

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

$tododate

comment date to execute date

Definition at line 48 of file Class.DocTimer.php.


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