当前位置: 首页>>代码示例>>PHP>>正文


PHP Model::overwriteRead方法代码示例

本文整理汇总了PHP中Model::overwriteRead方法的典型用法代码示例。如果您正苦于以下问题:PHP Model::overwriteRead方法的具体用法?PHP Model::overwriteRead怎么用?PHP Model::overwriteRead使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Model的用法示例。


在下文中一共展示了Model::overwriteRead方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->camp_foto_panjang)) {
             $obj->camp_foto_panjang = \Leap\View\InputFoto::getAndMakeFoto($obj->camp_foto_panjang, "camp_image_" . $obj->camp_id);
         }
         if (isset($obj->camp_foto_medium)) {
             $obj->camp_foto_medium = \Leap\View\InputFoto::getAndMakeFoto($obj->camp_foto_medium, "camp2_image_" . $obj->camp_id);
         }
         if (isset($obj->camp_foto_small)) {
             $obj->camp_foto_small = \Leap\View\InputFoto::getAndMakeFoto($obj->camp_foto_small, "camp3_image_" . $obj->camp_id);
         }
         if (isset($obj->camp_welcome_pic)) {
             $obj->camp_welcome_pic = \Leap\View\InputFoto::getAndMakeFoto($obj->camp_welcome_pic, "camp4_image_" . $obj->camp_id);
         }
         if (isset($obj->camp_type)) {
             $obj->camp_type = $this->type[$obj->camp_type];
         }
         if (isset($obj->camp_active)) {
             $obj->camp_active = $this->arrayYesNO[$obj->camp_active];
         }
         if (isset($obj->camp_size)) {
             $obj->camp_size = $this->arrsize[$obj->camp_size];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:29,代码来源:CampaignModel.php

示例2: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         //$obj->links = "<a onclick=\"openLw('Ulangan_Full','"._SPPATH."UlWeb/Ulangan_Full?id=".$obj->ulangan_id."','fade');\">configure</a>";
         $obj->links = "<a target='_blank' href=\"" . _SPPATH . "UlWeb/Ulangan_Full?id=" . $obj->ulangan_id . "\">configure</a>";
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:10,代码来源:QuizUlangan.php

示例3: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->level_active)) {
             $obj->level_active = $this->arrayYesNO[$obj->level_active];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:11,代码来源:RoleLevel.php

示例4: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->store_aktif)) {
             $obj->store_aktif = $this->arrayYesNO[$obj->store_aktif];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:11,代码来源:StorePortal.php

示例5: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->role_admin_id)) {
             $acc = new Account();
             $acc->getByID($obj->role_admin_id);
             $obj->role_admin_id = $acc->admin_nama_depan;
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:13,代码来源:Role2Account.php

示例6: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->news_pic)) {
             $obj->news_pic = \Leap\View\InputFoto::getAndMakeFoto($obj->news_pic, "news_image_" . $obj->news_pic);
         }
         if (isset($obj->news_active)) {
             $obj->news_active = $this->arrayYesNO[$obj->news_active];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:14,代码来源:LL_News.php

示例7: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->carousel_photo)) {
             $obj->carousel_photo = \Leap\View\InputFoto::getAndMakeFoto($obj->carousel_photo, "car_image_" . $obj->carousel_id);
         }
         if (isset($obj->carousel_active)) {
             $obj->carousel_active = $this->arrayYesNO[$obj->carousel_active];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:14,代码来源:CarouselMobile.php

示例8: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->prod_pic)) {
             $obj->prod_pic = \Leap\View\InputGallery::printMainPic($obj->prod_pic, "prod_pic-" . $obj->prod_id);
         }
         if (isset($obj->prod_active)) {
             $obj->prod_active = $this->arrayYesNO[$obj->prod_active];
         }
         if (isset($obj->prod_cat_id)) {
             $cat = new MProdCat();
             $cat->getByID($obj->prod_cat_id);
             $obj->prod_cat_id = $cat->cat_name;
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:19,代码来源:MProdModel.php

示例9: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->carousel_photo)) {
             $obj->carousel_photo = \Leap\View\InputFoto::getAndMakeFoto($obj->carousel_photo, "car_image_" . $obj->carousel_id);
         }
         if (isset($obj->carousel_page_id)) {
             $p = new Page();
             $p->getByID($obj->carousel_page_id, "ID,post_title");
             $obj->carousel_page_id = $p->ID . " - " . $p->post_title;
         }
         if (isset($obj->carousel_active)) {
             $obj->carousel_active = $this->arrayYesNO[$obj->carousel_active];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:19,代码来源:CarouselPortal.php

示例10: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->organization_active)) {
             $obj->organization_active = $this->arrayYesNO[$obj->organization_active];
         }
         if (isset($obj->organization_parent_id)) {
             if ($obj->organization_parent_id < 1) {
                 $obj->organization_parent_id = Lang::t('Top Level');
                 continue;
             }
             $r = new RoleOrganization();
             $r->getByID($obj->organization_parent_id);
             $obj->organization_parent_id = $r->organization_name;
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:20,代码来源:RoleOrganization.php

示例11: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->container_active)) {
             $obj->container_active = $this->arrayYesNO[$obj->container_active];
         }
         if (isset($obj->container_parent_id)) {
             $pc = new PageContainer();
             if ($obj->container_parent_id > 0) {
                 $pc->getByID($obj->container_parent_id);
                 $txt = $pc->container_name;
             } else {
                 $txt = Lang::t("No Parent");
             }
             $obj->container_parent_id = $txt;
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:21,代码来源:PageContainer.php

示例12: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->testi_acc_id)) {
             $acc = new LL_Account();
             $acc->getByID($obj->testi_acc_id);
             $obj->testi_acc_id = $acc->macc_first_name . " " . $acc->macc_last_name;
         }
         if (isset($obj->testi_product_id)) {
             $acc = new LL_Article_WImage();
             $acc->getByID($obj->testi_product_id);
             $obj->testi_product_id = $acc->BaseArticleNameENG;
         }
         //
         if (isset($obj->testi_status)) {
             $obj->testi_status = $this->arrStatus[$obj->testi_status];
         }
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:22,代码来源:LL_Testimonial.php

示例13: overwriteRead

 public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $oauth = IMBAuth::createOAuth();
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         $obj->removeAutoCrudClick = array("Action");
         //            if (isset($obj->carousel_photo)) {
         //                $obj->carousel_photo = \Leap\View\InputFoto::getAndMakeFoto($obj->carousel_photo, "car_image_" . $obj->carousel_id);
         //            }
         //
         if (isset($obj->camp_active)) {
             $obj->camp_active = $this->arrayYesNO[$obj->camp_active];
         }
         if (isset($obj->camp_status)) {
             $obj->camp_status = $this->arrStatus[$obj->camp_status];
         }
         $obj->Action = "<a class='btn  btn-default' href='" . _SPPATH . "PushNotResultsCaps/res?id=" . $obj->camp_id . "&token={$oauth}' target='_blank'>Results</a>\n            <a class='btn  btn-default' href='" . _SPPATH . "PushNotResultsCaps/test?id=" . $obj->camp_id . "&token={$oauth}' target='_blank'>Test</a>";
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:21,代码来源:PushNotCampCaps.php


注:本文中的Model::overwriteRead方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。