Пример #1
0
             $status = BEGINING_PRODUCT_PAGE;
         }
     }
     break;
 case BEGINING_CONTENTS_PAGE:
     // Check if the contents page has ended and
     // verify the order number just in case
     if (mb_stristr($_row, $page_heading)) {
         $numberArray = explode(' ', $_row);
         $Offer->verifyEnquiryNumber($numberArray[1]);
     } else {
         if (stristr($_row, $last_row_before_contents) || $_row == $last_row_before_contents) {
             $status = CONTENTS;
         } else {
             if (stristr($_row, $subject_start)) {
                 $Offer->setSubject(str_replace('Sagsnavn:', '', $_row));
             }
         }
     }
     break;
 case CONTENTS:
     // Check if the products have ended
     // otherwise parse the prodct data
     if ($_row == $contents_end) {
         $current_page++;
         $status = MEGAMEDIA_ADDRESS;
         $Offer->setMaxPages((int) $pageArr[0]);
     } else {
         if (!stristr($_row, ' Bilag s. ')) {
             continue;
         }