Overview

Namespaces

  • cli_db
    • propel
      • map
      • om
  • cli_import
  • LoggedPDO
  • None
  • PHP
  • webservices
    • cart
    • combisearch
    • details
      • annotations
        • feature
    • graphs
      • barplot
      • genome
    • listing
    • queue

Classes

  • AbstractTable
  • Acquisition
  • Analysis
  • Assay
  • Biomaterial
  • Contact
  • Feature
  • Organism
  • Protocol
  • Publication
  • Quantification

Interfaces

  • Table
  • Overview
  • Namespace
  • Class
  • Tree
  1: <?php
  2: 
  3: namespace cli_db;
  4: 
  5: require_once ROOT . 'classes/AbstractTable.php';
  6: 
  7: class Protocol extends AbstractTable {
  8: 
  9:     /**
 10:      * @inheritDoc
 11:      */
 12:     public static function getKeys() {
 13:         return array(
 14:             'id' => array(
 15:                 'colname' => 'ProtocolId',
 16:                 'actions' => array(
 17:                     'details' => 'required',
 18:                     'update' => 'required',
 19:                     'delete' => 'required',
 20:                 ),
 21:                 'description' => 'protocol id'
 22:             ),
 23:             'name' => array(
 24:                 'colname' => 'Name',
 25:                 'actions' => array(
 26:                     'insert' => 'optional',
 27:                     'update' => 'optional',
 28:                 ),
 29:                 'description' => 'protocol name (unique)'
 30:             ),
 31:             'uri' => array(
 32:                 'colname' => 'Uri',
 33:                 'actions' => array(
 34:                     'insert' => 'optional',
 35:                     'update' => 'optional',
 36:                 ),
 37:                 'description' => 'uri'
 38:             ),
 39:             'protocol_description' => array(
 40:                 'colname' => 'Protocoldescription',
 41:                 'actions' => array(
 42:                     'insert' => 'optional',
 43:                     'update' => 'optional',
 44:                 ),
 45:                 'description' => 'the protocol text',
 46:                 'short_name' => '-p'
 47:             ),
 48:             'hardware_description' => array(
 49:                 'colname' => 'Hardwaredescription',
 50:                 'actions' => array(
 51:                     'insert' => 'optional',
 52:                     'update' => 'optional',
 53:                 ),
 54:                 'description' => 'a description of hardware involved',
 55:                 'short_name' => '-w'
 56:             ),
 57:             'software_description' => array(
 58:                 'colname' => 'Softwaredescription',
 59:                 'actions' => array(
 60:                     'insert' => 'optional',
 61:                     'update' => 'optional',
 62:                 ),
 63:                 'description' => 'a description of software involved',
 64:                 'short_name' => '-s'
 65:             )
 66:         );
 67:     }
 68: 
 69:     /**
 70:      * @inheritDoc
 71:      */
 72:     protected static function command_insert_set_defaults(\BaseObject $item) {
 73:         // satisfy NOT NULL constraint
 74:         $item->setTypeId(1);
 75:     }
 76: 
 77:     /**
 78:      * @inheritDoc
 79:      */
 80:     public static function CLI_commandDescription() {
 81:         return 'Manipulate protocols.';
 82:     }
 83: 
 84:     /**
 85:      * @inheritDoc
 86:      */
 87:     public static function CLI_commandName() {
 88:         return 'protocol';
 89:     }
 90: 
 91:     /**
 92:      * @inheritDoc
 93:      */
 94:     public static function CLI_longHelp() {
 95:         
 96:     }
 97: 
 98:     /**
 99:      * @inheritDoc
100:      */
101:     public static function getSubCommands() {
102:         return array('insert', 'update', 'delete', 'details', 'list');
103:     }
104: 
105:     /**
106:      * @inheritDoc
107:      */
108:     public static function getPropelClass() {
109:         return '\\cli_db\\propel\\Protocol';
110:     }
111: 
112: }
113: 
114: ?>
115: 
tbro API documentation generated by ApiGen 2.8.0