public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->video_upload_preview)) {
             $obj->video_upload_preview = \Leap\View\InputFoto::getAndMakeFoto($obj->video_upload_preview, "video_upload_" . $obj->video_id);
         }
     }
     return $return;
 }
 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->quote_active)) {
             $obj->quote_active = $this->arrayYesNO[$obj->quote_active];
         }
     }
     return $return;
 }
 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->news_image)) {
             $obj->news_image = \Leap\View\InputFoto::getAndMakeFoto($obj->news_image, "news_image_" . $obj->news_id);
         }
         if (isset($obj->news_page_id)) {
             $p = new Page();
             $p->getByID($obj->news_page_id, "ID,post_title");
             $obj->news_page_id = $p->ID . " - " . $p->post_title;
         }
     }
     return $return;
 }
 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->pop_file)) {
             if (strpos($obj->pop_file, "csv") !== false) {
                 $obj->pop_file = $obj->pop_file;
             } else {
                 $obj->pop_file = \Leap\View\InputFile::getAndMakeFoto($obj->pop_file, "news_image_" . $obj->pop_file);
                 //$obj->pop_file = \Leap\View\InputFile::getAndMakeFoto($obj->pop_file, "news_image_" . $obj->pop_file);
             }
         }
     }
     return $return;
 }