Beispiel #1
0
 function filtered_search_by_mixed_criteria_csv(&$output_data, &$xslt_file = "")
 {
     $recordsearcher = new RecordSearcher();
     //echo microtime()."RecordIniFacade: filtered_search_by_mixed_criteria;  before executing ".'$recordsearcher->filtered_search_by_mixed_criteria();'." <br>";
     $eids = $recordsearcher->filtered_search_by_mixed_criteria(false);
     $_REQUEST['eids'] = $eids;
     if (!isset($_REQUEST['type_id'])) {
         $_REQUEST['type_id'] = $_SESSION['type_id'];
     }
     //$this->initializeRecordSet($xml_string, $xslt_file);
     //initialize MyEDB_Matrix with prop ids to be column names
     //get Property::get_property_list
     $property_list = Property::get_property_list();
     //print_r($property_list); echo "helloo";
     $myedb_matrix = new MyEDB_Matrix($property_list);
     //do loop through eids creating associative array of resulting recs
     foreach ($eids as $eid) {
         $type_id = RecordsSys_EntityManagementSystems::get_type_id($eid);
         //can't rely on request type_id, because search results may have generic type_id
         $one_row_rec = new One_Row_Record($eid, $type_id);
         $one_row_rec->exclude_properties = array(26, 27);
         $one_row_rec->setup();
         //add $one_row_rec to MyEDB_Matrix
         $myedb_matrix->add_one_row_record($one_row_rec);
         //add $complete_prop_matrix to $eid_recs
     }
     $myedb_matrix->finalize_matrix();
     $output_data = $myedb_matrix->get_matrix();
 }
Beispiel #2
0
 static function get_property_list()
 {
     return Property::get_property_list();
 }