Пример #1
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'validation_dashboard';
     $this->_key = 'dashboard_id';
     $this->_mainData = array('dashboard_id' => array('type' => MIDAS_DATA), 'owner_id' => array('type' => MIDAS_DATA), 'name' => array('type' => MIDAS_DATA), 'description' => array('type' => MIDAS_DATA), 'truthfolder_id' => array('type' => MIDAS_DATA), 'testingfolder_id' => array('type' => MIDAS_DATA), 'trainingfolder_id' => array('type' => MIDAS_DATA), 'metric_id' => array('type' => MIDAS_DATA), 'owner' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'User', 'parent_column' => 'owner_id', 'child_column' => 'user_id'), 'truth' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Folder', 'parent_column' => 'truthfolder_id', 'child_column' => 'folder_id'), 'training' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Folder', 'parent_column' => 'trainingfolder_id', 'child_column' => 'folder_id'), 'testing' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Folder', 'parent_column' => 'testingfolder_id', 'child_column' => 'folder_id'), 'results' => array('type' => MIDAS_MANY_TO_MANY, 'model' => 'Folder', 'table' => 'validation_dashboard2folder', 'parent_column' => 'dashboard_id', 'child_column' => 'folder_id'), 'scores' => array('type' => MIDAS_MANY_TO_MANY, 'model' => 'ScalarResult', 'module' => 'validation', 'table' => 'validation_dashboard2scalarresult', 'parent_column' => 'dashboard_id', 'child_column' => 'scalarresult_id'));
     $this->initialize();
     // required
 }
Пример #2
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'validation_scalarresult';
     $this->_key = 'scalarresult_id';
     // need to add a_daoName because of conflict between
     // camel case ScalarResult class name
     // and
     // lowercase table name validation_scalarresult
     // so we need to explicitly set the capitalization in _daoName
     $this->_daoName = 'ScalarResultDao';
     $this->_mainData = array('scalarresult_id' => array('type' => MIDAS_DATA), 'folder_id' => array('type' => MIDAS_DATA), 'item_id' => array('type' => MIDAS_DATA), 'value' => array('type' => MIDAS_DATA), 'folder' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Folder', 'parent_column' => 'folder_id', 'child_column' => 'folder_id'), 'item' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'Item', 'parent_column' => 'item_id', 'child_column' => 'item_id'));
     $this->initialize();
     // required
 }