1: <?php
2:
3: namespace cli_db;
4:
5: require_once ROOT . 'classes/AbstractTable.php';
6:
7: class Quantification extends AbstractTable {
8:
9: 10: 11:
12: public static function getKeys() {
13: return array(
14: 'id' => array(
15: 'colname' => 'QuantificationId',
16: 'actions' => array(
17: 'details' => 'required',
18: 'update' => 'required',
19: 'delete' => 'required',
20: ),
21: 'description' => 'quantification id'
22: ),
23: 'name' => array(
24: 'colname' => 'Name',
25: 'actions' => array(
26: 'insert' => 'optional',
27: 'update' => 'optional',
28: ),
29: 'description' => "name\nNote: the combination of quantification name and analysis id has to be unique!"
30: ),
31: 'uri' => array(
32: 'colname' => 'Uri',
33: 'actions' => array(
34: 'insert' => 'optional',
35: 'update' => 'optional',
36: ),
37: 'description' => 'uri'
38: ),
39: 'acquisition_id' => array(
40: 'colname' => 'AcquisitionId',
41: 'actions' => array(
42: 'insert' => 'required',
43: 'update' => 'optional',
44: ),
45: 'description' => 'acquisition id'
46: ),
47: 'operator_id' => array(
48: 'colname' => 'OperatorId',
49: 'actions' => array(
50: 'insert' => 'optional',
51: 'update' => 'optional',
52: ),
53: 'description' => 'contact id'
54: ),
55: 'protocol_id' => array(
56: 'colname' => 'ProtocolId',
57: 'actions' => array(
58: 'insert' => 'optional',
59: 'update' => 'optional',
60: ),
61: 'description' => 'protocol id'
62: ),
63: 'analysis_id' => array(
64: 'colname' => 'AnalysisId',
65: 'actions' => array(
66: 'insert' => 'required',
67: 'update' => 'optional',
68: ),
69: 'description' => 'analysis id'
70: ),
71: 'quantificationdate' => array(
72: 'colname' => 'Quantificationdate',
73: 'actions' => array(
74: 'insert' => 'optional',
75: 'update' => 'optional',
76: ),
77: 'description' => 'time of quantification'
78: ),
79: );
80: }
81:
82: 83: 84:
85: public static function CLI_commandDescription() {
86: return 'Manipulate quantifications.';
87: }
88:
89: 90: 91:
92: public static function CLI_commandName() {
93: return 'quantification';
94: }
95:
96: 97: 98:
99: public static function CLI_longHelp() {
100:
101: }
102:
103: 104: 105:
106: public static function getSubCommands() {
107: return array('insert', 'update', 'delete', 'details', 'list');
108: }
109:
110: 111: 112:
113: public static function getPropelClass() {
114: return '\\cli_db\\propel\\Quantification';
115: }
116:
117: }
118:
119: ?>
120: