/**
  * loadInstanceDataNow
  * @param string $strKey
  * @param array $arrGenFormPageIds
  * @return void
  * @author Thomas Schedler <*****@*****.**>
  */
 protected function loadInstanceDataNow($strKey, $arrGenFormPageIds, $strImgFieldIds = '5,55')
 {
     $intImgFilterTag = $this->objParentPage instanceof Page && $this->objParentPage->getField('entry_pic_tag') !== null && (int) $this->objParentPage->getFieldValue('entry_pic_tag') > 0 ? $this->objParentPage->getFieldValue('entry_pic_tag') : 0;
     $objPageRowset = $this->objModel->loadItemInstanceDataByIds($strKey, $arrGenFormPageIds, $intImgFilterTag, $strImgFieldIds);
     /**
      * overwrite page entries
      */
     if (isset($objPageRowset) && count($objPageRowset) > 0) {
         foreach ($objPageRowset as $objPageRow) {
             if (array_key_exists($objPageRow->id, $this->arrPageEntries)) {
                 if (is_array($this->arrPageEntries[$objPageRow->id])) {
                     $arrPageEntryContainers = $this->arrPageEntries[$objPageRow->id];
                 } else {
                     $arrPageEntryContainers = array($this->arrPageEntries[$objPageRow->id]);
                 }
                 foreach ($arrPageEntryContainers as $intContainerId) {
                     if (array_key_exists($intContainerId, $this->arrContainer)) {
                         $objPageEntry = $this->arrContainer[$intContainerId]->getPageEntry('entry_' . $objPageRow->id);
                         $objPageEntry->datetime = isset($objPageRow->datetime) ? strtotime($objPageRow->datetime) : '';
                         $objPageEntry->shortdescription = isset($objPageRow->shortdescription) ? $objPageRow->shortdescription : '';
                         $objPageEntry->description = isset($objPageRow->description) ? $objPageRow->description : '';
                         $objPageEntry->slogan = isset($objPageRow->slogan) ? $objPageRow->slogan : '';
                         $objPageEntry->filename = isset($objPageRow->filename) ? $objPageRow->filename : '';
                         $objPageEntry->fileversion = isset($objPageRow->fileversion) ? $objPageRow->fileversion : '';
                         $objPageEntry->filepath = isset($objPageRow->filepath) ? $objPageRow->filepath : '';
                         $objPageEntry->filetitle = isset($objPageRow->filetitle) ? $objPageRow->filetitle : '';
                         $objPageEntry->start_datetime = isset($objPageRow->start_datetime) ? $objPageRow->start_datetime : '';
                         $objPageEntry->end_datetime = isset($objPageRow->end_datetime) ? $objPageRow->end_datetime : '';
                         $objPageEntry->external = isset($objPageRow->external) ? $objPageRow->external : '';
                         if (isset($objPageRow->tagfilename) && $objPageRow->tagfilename !== null) {
                             $objPageEntry->filename = $objPageRow->tagfilename;
                         }
                         if (isset($objPageRow->tagfileversion) && $objPageRow->tagfileversion !== null) {
                             $objPageEntry->fileversion = $objPageRow->tagfileversion;
                         }
                         if (isset($objPageRow->tagfilepath) && $objPageRow->tagfilepath !== null) {
                             $objPageEntry->filepath = $objPageRow->tagfilepath;
                         }
                         if (isset($objPageRow->tagfiletitle) && $objPageRow->tagfiletitle !== null) {
                             $objPageEntry->filetitle = $objPageRow->tagfiletitle;
                         }
                         if (isset($objPageRow->categoryId) && $objPageRow->categoryId !== null) {
                             if ($objPageEntry->categories === null) {
                                 $objPageEntry->categories = new stdClass();
                                 $objPageEntry->categories->arr = array($objPageRow->categoryId => $objPageRow->category);
                             } else {
                                 $objPageEntry->categories->arr[$objPageRow->categoryId] = $objPageRow->category;
                             }
                         }
                         if (isset($objPageRow->courseId) && $objPageRow->courseId !== null && date('Ymd', strtotime($objPageRow->start_datetime)) >= date('Ymd')) {
                             if ($objPageEntry->courses === null) {
                                 $objPageEntry->courses = new stdClass();
                                 $objPageEntry->courses->arr = array();
                             }
                             if (!array_key_exists($objPageRow->courseId, $objPageEntry->courses->arr)) {
                                 $objCourse = new stdClass();
                                 $objCourse->id = $objPageRow->courseId;
                                 $objCourse->title = $objPageRow->courseTitle;
                                 $objCourse->start_datetime = strtotime($objPageRow->start_datetime);
                                 $objCourse->location = $objPageRow->location;
                                 $objCourse->speakers = array($objPageRow->speakerId => $objPageRow->speaker);
                                 $objCourse->categories = array($objPageRow->categoryId => $objPageRow->category);
                                 $objPageEntry->courses->arr[$objPageRow->courseId] = $objCourse;
                             } else {
                                 $objPageEntry->courses->arr[$objPageRow->courseId]->speakers[$objPageRow->speakerId] = $objPageRow->speaker;
                                 $objPageEntry->courses->arr[$objPageRow->courseId]->categories[$objPageRow->categoryId] = $objPageRow->category;
                             }
                         }
                         $this->arrContainer[$intContainerId]->addPageEntry($objPageEntry, 'entry_' . $objPageRow->id);
                     }
                 }
             }
         }
     }
 }