Platform  3.1
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 ()
 
 executeTimerNow ()
 
- 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
 
 $sup_fields
 
 $id
 
 $tododate
 
 $level
 
 $id_fields
 
 $dbtable = "doctimer"
 
 $sqlcreate
 
- 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 19 of file Class.DocTimer.php.

Member Function Documentation

executeTimerNow ( )

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

+ Here is the call graph for this function:

getActionsToExecute ( )

get all actions need to be executed now

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

+ Here is the call graph for this function:

preInsert ( )

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

unattachAll (   $docid,
$c 
)

delete all timers for a document

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

Definition at line 121 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 identificator to detach
int$timeridtimerc identificator to detach
Returns
string error - empty if no error -

Definition at line 142 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 identificator to detach
int$originidinitial origin id
int&$ccount of deletion
Returns
string error - empty if no error -

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

+ Here is the call graph for this function:

Field Documentation

$dbtable = "doctimer"

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

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

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

$id

identificator of timer int

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

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

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

$level

level of timer (number of iterations) int

Definition at line 54 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,
tododate timestamp,
donedate timestamp,
actions text,
result text );
"

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

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

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

$tododate

comment date to execute date

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


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