當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Crud::run方法代碼示例

本文整理匯總了PHP中Crud::run方法的典型用法代碼示例。如果您正苦於以下問題:PHP Crud::run方法的具體用法?PHP Crud::run怎麽用?PHP Crud::run使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Crud的用法示例。


在下文中一共展示了Crud::run方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: page

 public function page()
 {
     //create the model object
     $cal = new Page();
     //send the webclass
     $webClass = __CLASS__;
     //by pass the form
     $cmd = isset($_GET['cmd']) ? addslashes($_GET['cmd']) : 'read';
     if ($cmd == "edit") {
         //Crud::createForm($obj,$webClass);
         //die('edit');
         $id = isset($_GET['id']) ? addslashes($_GET['id']) : 0;
         if ($id) {
             $cal->getByID($id);
         }
         $mps['id'] = $id;
         $mps['obj'] = $cal;
         Mold::plugin("Page", "pageForm", $mps);
         exit;
     }
     $cid = addslashes($_GET['cid']);
     if ($cid != "") {
         $_SESSION['pageConID'] = $cid;
     } else {
         //unset($_SESSION['pageConID']);
     }
     $cal->read_filter_array = array("post_gallery_id" => $_SESSION['pageConID']);
     //echo $cid;
     //pr($cal);
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:elang-combo,代碼行數:33,代碼來源:Page2ContainerWeb.php

示例2: qRRequestModel

 public function qRRequestModel()
 {
     //create the model object
     $cal = new QRRequestModel();
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:martabak_revolution,代碼行數:8,代碼來源:QRRequest.php

示例3: masterReceiptModel

 public function masterReceiptModel()
 {
     //create the model object
     $cal = new MasterReceiptModel();
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:martabak_revolution,代碼行數:8,代碼來源:MasterReceipt.php

示例4: MTranDetail

 function MTranDetail()
 {
     $cal = new MTranDetail();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:es-teler-baru-suka,代碼行數:8,代碼來源:Msales.php

示例5: PushLogger

 function PushLogger()
 {
     $cal = new PushLogger();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:es-teler-baru-suka,代碼行數:9,代碼來源:PushNotBE.php

示例6: masterRestaurantTagModel

 public function masterRestaurantTagModel()
 {
     //create the model object
     $cal = new MasterRestaurantTagModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utileity
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:martabak_revolution,代碼行數:9,代碼來源:MasterRestaurantTag.php

示例7: DeviceModel

 function DeviceModel()
 {
     $cal = new DeviceModel();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:apel-enak,代碼行數:9,代碼來源:PushNotCapsBE.php

示例8: QuizIklan

 public function QuizIklan()
 {
     //create the model object
     $cal = new QuizIklan();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:biji_katak,代碼行數:9,代碼來源:QuizTest.php

示例9: topicmap

 public function topicmap()
 {
     //create the model object
     $gr = new Topicmap();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($gr, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:elang-combo,代碼行數:9,代碼來源:Adminweb.php

示例10: BlogCategory

 function BlogCategory()
 {
     $cal = new BlogCategory();
     //        $cal->printColumlistAsAttributes();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:biji_katak,代碼行數:9,代碼來源:BlogBE.php

示例11: CampaignModel

 public function CampaignModel()
 {
     //create the model object
     $cal = new CampaignModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:biji_katak,代碼行數:9,代碼來源:ProdWeb.php

示例12: Testing

 function Testing()
 {
     //create the model object
     $cal = new Testing();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:es-teler-baru-suka,代碼行數:9,代碼來源:TestingWeb.php

示例13: SocmedPortal

 public function SocmedPortal()
 {
     //create the model object
     $cal = new SocmedPortal();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:apel-enak,代碼行數:9,代碼來源:Socmed.php

示例14: homesettingModel

 public function homesettingModel()
 {
     //create the model object
     $cal = new HomeSettingModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //pr($mps);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:martabak_revolution,代碼行數:10,代碼來源:HomeSetting.php

示例15: masterDishTagModel

 public function masterDishTagModel()
 {
     //create the model object
     $cal = new MasterDishTagModel();
     //send the webclass
     $webClass = __CLASS__;
     //run the crud utility
     Crud::run($cal, $webClass);
     //        pr($mps);
 }
開發者ID:CapsuleCorpIndonesia,項目名稱:martabak_revolution,代碼行數:10,代碼來源:MasterDishTag.php


注:本文中的Crud::run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。