예제 #1
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'tracker_trend';
     $this->_key = 'trend_id';
     $this->_mainData = array('trend_id' => array('type' => MIDAS_DATA), 'producer_id' => array('type' => MIDAS_DATA), 'metric_name' => array('type' => MIDAS_DATA), 'display_name' => array('type' => MIDAS_DATA), 'unit' => array('type' => MIDAS_DATA), 'config_item_id' => array('type' => MIDAS_DATA), 'test_dataset_id' => array('type' => MIDAS_DATA), 'truth_dataset_id' => array('type' => MIDAS_DATA), 'producer' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Producer', 'module' => $this->moduleName, 'parent_column' => 'producer_id', 'child_column' => 'producer_id'), 'config_item' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Item', 'parent_column' => 'config_item_id', 'child_column' => 'item_id'), 'test_dataset_item' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Item', 'parent_column' => 'test_dataset_id', 'child_column' => 'item_id'), 'truth_dataset_item' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Item', 'parent_column' => 'truth_dataset_id', 'child_column' => 'item_id'), 'scalars' => array('type' => MIDAS_ONE_TO_MANY, 'model' => 'Scalar', 'module' => $this->moduleName, 'parent_column' => 'trend_id', 'child_column' => 'trend_id'));
     $this->initialize();
 }
예제 #2
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'tracker_scalar';
     $this->_key = 'scalar_id';
     $this->_mainData = array('scalar_id' => array('type' => MIDAS_DATA), 'trend_id' => array('type' => MIDAS_DATA), 'user_id' => array('type' => MIDAS_DATA), 'submission_id' => array('type' => MIDAS_DATA), 'official' => array('type' => MIDAS_DATA), 'build_results_url' => array('type' => MIDAS_DATA), 'params' => array('type' => MIDAS_DATA), 'extra_urls' => array('type' => MIDAS_DATA), 'branch' => array('type' => MIDAS_DATA), 'submit_time' => array('type' => MIDAS_DATA), 'value' => array('type' => MIDAS_DATA), 'producer_revision' => array('type' => MIDAS_DATA), 'trend' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Trend', 'module' => $this->moduleName, 'parent_column' => 'trend_id', 'child_column' => 'trend_id'), 'submission' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Submission', 'module' => $this->moduleName, 'parent_column' => 'submission_id', 'child_column' => 'submission_id'), 'user' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'User', 'parent_column' => 'user_id', 'child_column' => 'user_id'));
     $this->initialize();
 }
예제 #3
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'tracker_submission';
     $this->_key = 'submission_id';
     $this->_mainData = array('submission_id' => array('type' => MIDAS_DATA), 'producer_id' => array('type' => MIDAS_DATA), 'name' => array('type' => MIDAS_DATA), 'uuid' => array('type' => MIDAS_DATA), 'submit_time' => array('type' => MIDAS_DATA), 'producer' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Producer', 'module' => $this->moduleName, 'parent_column' => 'producer_id', 'child_column' => 'producer_id'));
     $this->initialize();
 }
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'tracker_threshold_notification';
     $this->_daoName = 'ThresholdNotificationDao';
     $this->_key = 'threshold_id';
     $this->_mainData = array('threshold_id' => array('type' => MIDAS_DATA), 'trend_id' => array('type' => MIDAS_DATA), 'value' => array('type' => MIDAS_DATA), 'comparison' => array('type' => MIDAS_DATA), 'action' => array('type' => MIDAS_DATA), 'recipient_id' => array('type' => MIDAS_DATA), 'trend' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Trend', 'module' => $this->moduleName, 'parent_column' => 'trend_id', 'child_column' => 'trend_id'), 'recipient' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'User', 'parent_column' => 'recipient_id', 'child_column' => 'user_id'));
     $this->initialize();
 }