function &fetch()
 {
     include_once LIMB_STATS_DIR . '/dao/criteria/StatsPeriodCriteria.class.php';
     $this->addCriteria(new StatsPeriodCriteria());
     include_once LIMB_STATS_DIR . '/dao/StatsCountersReportRecordSet.class.php';
     return new StatsCountersReportRecordSet(parent::fetch());
 }
 function &fetch()
 {
     include_once dirname(__FILE__) . '/criteria/StatsPeriodCriteria.class.php';
     $this->addCriteria(new StatsPeriodCriteria());
     include_once dirname(__FILE__) . '/StatsPercentageRecordSet.class.php';
     return new StatsPercentageRecordSet(parent::fetch());
 }
 function testCorrectLink()
 {
     $this->db->insert('media', array('id' => $media_id1 = 10, 'media_file_id' => $media_file_id1 = 'sdsda232dsds', 'file_name' => $file_name1 = 'file1', 'mime_type' => $mime_type1 = 'type1', 'size' => $size1 = 20, 'etag' => $etag1 = 'etag1'));
     $this->db->insert('file_object', array('oid' => $file_id1 = 1, 'media_id' => $media_id1));
     $this->db->insert('sys_object', array('oid' => $file_id1, 'class_id' => 1000));
     $dao = new SQLBasedDAO();
     $sql =& new ComplexSelectSQL("SELECT sys_object.oid %fields% FROM sys_object %tables% %where% %group% %order%");
     $dao->setSQL($sql);
     $dao->addCriteria(new FileObjectsCriteria());
     $rs =& new SimpleDbDataset($dao->fetch());
     $record = $rs->getRow();
     $this->assertEqual($record['oid'], $file_id1);
     $this->assertEqual($record['media_id'], $media_id1);
     $this->assertEqual($record['file_name'], $file_name1);
     $this->assertEqual($record['media_file_id'], $media_file_id1);
     $this->assertEqual($record['mime_type'], $mime_type1);
     $this->assertEqual($record['etag'], $etag1);
     $this->assertEqual($record['size'], $size1);
 }
 function &fetch()
 {
     include_once LIMB_STATS_DIR . '/dao/criteria/StatsPeriodCriteria.class.php';
     $this->addCriteria(new StatsPeriodCriteria());
     return parent::fetch();
 }
 function &fetch()
 {
     return new ImageObjectsRecordSet(parent::fetch());
 }