Platform  3.1
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  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * History log for document
9  *
10  * @author Anakeen 2005
11  * @version $Id: Class.DocHisto.php,v 1.1 2006/06/08 16:03:13 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  */
15 /**
16  */
17 /**#@+
18  * constant for log level history
19  *
20 */
21 define("LOG_NOTICE", 1);
22 define("LOG_INFO", 2);
23 define("LOG_NOTIFY", 4);
24 define("LOG_WARNING", 8);
25 define("LOG_ERROR", 16);
26 
27 include_once ("Class.DbObj.php");
28 class DocLog extends DbObj
29 {
30  public $fields = array(
31  "id", // doc id
32  "initid", // doc initid
33  "title", // doc title
34  "uid", // user what id
35  "uname", // use name
36  "level", // log level
37  "code", // code log
38  "arg", // arg serialized object
39  "comment"
40  // comment text
41 
42  );
43 
44  public $sup_fields = array(
45  "date", // date of entry
46 
47  );
48  /**
49  * identificator of document
50  * @public int
51  */
52  public $id;
53  /**
54  * identificator 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 $id_fields = array(
80  "id"
81  );
82  public $dbtable = "doclog";
83 
84  public $sqlcreate = "
85 create table doclog ( id int not null,
86  initid int not null,
87  title text,
88  uid int not null,
89  uname text,
90  date timestamp default now(),
91  level int,
92  code text not null,
93  arg text,
94  comment text );
95 create index i_doclog on doclog(id);
96 create index in_doclog on doclog(initid);
97 create index date_doclog on doclog(date);
98 ";
99 }
100 ?>
← centre documentaire © anakeen - published under CC License - Dynacase