Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Class.DocLog.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * History log for document
8  *
9  * @author Anakeen
10  * @version $Id: Class.DocHisto.php,v 1.1 2006/06/08 16:03:13 eric Exp $
11  * @package FDL
12  */
13 /**
14  */
15 /**#@+
16  * constant for log level history
17  *
18 */
19 
20 include_once ("Class.DbObj.php");
21 class DocLog extends DbObj
22 {
23  const LOG_NOTICE = 1;
24  const LOG_INFO = 2;
25  const LOG_NOTIFY = 4;
26  const LOG_WARNING = 8;
27  const LOG_ERROR = 16;
28 
29  public $fields = array(
30  "id", // doc id
31  "initid", // doc initid
32  "title", // doc title
33  "uid", // user what id
34  "uname", // use name
35  "level", // log level
36  "code", // code log
37  "arg", // arg serialized object
38  "comment"
39  // comment text
40 
41  );
42 
43  public $sup_fields = array(
44  "date"
45  // date of entry
46 
47  );
48  /**
49  * identifier of document
50  * @public int
51  */
52  public $id;
53  /**
54  * identifier system of the user
55  * @public int
56  */
57  public $uid;
58  /**
59  * firstname and last name of the user
60  * @public string
61  */
62  public $uname;
63  /**
64  * comment date record
65  * @public date
66  */
67  public $date;
68  /**
69  * level of comment
70  * @public int
71  */
72  public $level;
73  /**
74  * arg of code
75  * @public text serialize object
76  */
77  public $arg;
78 
79  public $initid;
80  /**
81  * @var string document title
82  */
83  public $title;
84  /**
85  * @var string log message
86  */
87  public $comment;
88  public $code;
89  public $id_fields = array(
90  "id"
91  );
92  public $dbtable = "doclog";
93 
94  public $sqlcreate = "
95 create table doclog ( id int not null,
96  initid int not null,
97  title text,
98  uid int not null,
99  uname text,
100  date timestamp default now(),
101  level int,
102  code text not null,
103  arg text,
104  comment text );
105 create index i_doclog on doclog(id);
106 create index in_doclog on doclog(initid);
107 create index date_doclog on doclog(date);
108 ";
109 }
110 ?>
const LOG_NOTICE
const LOG_NOTIFY
const LOG_INFO
const LOG_WARNING
const LOG_ERROR
← centre documentaire © anakeen