1: <?php
2:
3: namespace cli_db;
4:
5: require_once ROOT . 'classes/AbstractTable.php';
6:
7: class Acquisition extends AbstractTable {
8:
9: 10: 11:
12: public static function getKeys() {
13: return array(
14: 'id' => array(
15: 'colname' => 'AcquisitionId',
16: 'actions' => array(
17: 'details' => 'required',
18: 'update' => 'required',
19: 'delete' => 'required',
20: ),
21: 'description' => 'acquisition id'
22: ),
23: 'name' => array(
24: 'colname' => 'Name',
25: 'actions' => array(
26: 'insert' => 'optional',
27: 'update' => 'optional',
28: ),
29: 'description' => 'name (unique)'
30: ),
31: 'uri' => array(
32: 'colname' => 'Uri',
33: 'actions' => array(
34: 'insert' => 'optional',
35: 'update' => 'optional',
36: ),
37: 'description' => 'uri'
38: ),
39: 'assay_id' => array(
40: 'colname' => 'AssayId',
41: 'actions' => array(
42: 'insert' => 'required',
43: 'update' => 'optional',
44: ),
45: 'description' => 'assay id'
46: ),
47: 'protocol_id' => array(
48: 'colname' => 'ProtocolId',
49: 'actions' => array(
50: 'insert' => 'optional',
51: 'update' => 'optional',
52: ),
53: 'description' => 'protocol id'
54: ),
55: 'acquisitiondate' => array(
56: 'colname' => 'Acquisitiondate',
57: 'actions' => array(
58: 'insert' => 'optional',
59: 'update' => 'optional',
60: ),
61: 'description' => 'time of acquisition'
62: ),
63: );
64: }
65:
66: 67: 68:
69: public static function CLI_commandDescription() {
70: return 'Manipulate acquisitions.';
71: }
72:
73: 74: 75:
76: public static function CLI_commandName() {
77: return 'acquisition';
78: }
79:
80: 81: 82:
83: public static function CLI_longHelp() {
84:
85: }
86:
87: 88: 89:
90: public static function getSubCommands() {
91: return array('insert', 'update', 'delete', 'details', 'list');
92: }
93:
94: 95: 96:
97: public static function getPropelClass() {
98: return '\\cli_db\\propel\\Acquisition';
99: }
100:
101: }
102:
103: ?>
104: