summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-22 12:46:39 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-22 12:46:39 -0400
commit471e4056f4b2c0ea7d5bb3646b9f6ae24ece8da8 (patch)
treeacd771443ed95d63733f93064b98d11105614932 /classes
parent0323ca5c8ed0db53dbc9168862d2ee901b440503 (diff)
add notice sources (currently unused)
darcs-hash:20080722164639-84dde-19c6300516443862da016120cf9eed40e5972b6d.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php1
-rw-r--r--classes/Notice_source.php24
-rw-r--r--classes/stoica.ini11
3 files changed, 36 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 1d157b8a0..1b9191ad6 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -40,6 +40,7 @@ class Notice extends DB_DataObject
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
public $reply_to; // int(4)
public $is_local; // tinyint(1)
+ public $source; // varchar(8)
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
diff --git a/classes/Notice_source.php b/classes/Notice_source.php
new file mode 100644
index 000000000..cef2883b0
--- /dev/null
+++ b/classes/Notice_source.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Table Definition for notice_source
+ */
+require_once 'DB/DataObject.php';
+
+class Notice_source extends DB_DataObject
+{
+ ###START_AUTOCODE
+ /* the code below is auto generated do not remove the above tag */
+
+ public $__table = 'notice_source'; // table name
+ public $code; // varchar(8) primary_key not_null
+ public $name; // varchar(255) not_null
+ public $url; // varchar(255) not_null
+ public $created; // datetime() not_null
+ public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
+
+ /* Static get */
+ function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice_source',$k,$v); }
+
+ /* the code above is auto generated do not remove the tag below */
+ ###END_AUTOCODE
+}
diff --git a/classes/stoica.ini b/classes/stoica.ini
index 1fa0a333f..aba79d11e 100644
--- a/classes/stoica.ini
+++ b/classes/stoica.ini
@@ -62,10 +62,21 @@ created = 142
modified = 384
reply_to = 1
is_local = 17
+source = 2
[notice__keys]
id = N
+[notice_source]
+code = 130
+name = 130
+url = 130
+created = 142
+modified = 384
+
+[notice_source__keys]
+code = K
+
[profile]
id = 129
nickname = 130