3 * Table Definition for notice_source
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
7 class Notice_source extends Managed_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'notice_source'; // table name
13 public $code; // varchar(32) primary_key not_null
14 public $name; // varchar(255) not_null
15 public $url; // varchar(255) not_null
16 public $created; // datetime() not_null
17 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
20 function staticGet($k,$v=null)
21 { return Memcached_DataObject::staticGet('Notice_source',$k,$v); }
23 /* the code above is auto generated do not remove the tag below */
26 public static function schemaDef()
30 'code' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'source code'),
31 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'description' => 'name of the source'),
32 'url' => array('type' => 'varchar', 'length' => 255, 'not null' => true, 'description' => 'url to link to'),
33 'notice_id' => array('type' => 'int', 'not null' => true, 'description' => 'date this record was created'),
34 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
35 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
37 'primary key' => array('code'),