| 
    Stud.IP
    jlu_3.3 Revision
    
   | 
  
Variables | |
| $res_obj = ResourceObject::Factory() | |
| $snap = new DbSnapshot(new DB_Seminar("SELECT resource_id, parent_id FROM resources_objects INNER JOIN resources_categories USING(category_id) WHERE is_room = 1")) | |
| if($snap->numRows) | else | 
| $res_obj = ResourceObject::Factory() | 
use this script to get a sample config_room_groups.inc.php based on existing rooms and resources structure, writes to STDOUT
| $snap = new DbSnapshot(new DB_Seminar("SELECT resource_id, parent_id FROM resources_objects INNER JOIN resources_categories USING(category_id) WHERE is_room = 1")) | 
| if ( $snap->numRows) else |