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


PHP Crud::Crud方法代碼示例

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


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

示例1: ContractPayment

 public function ContractPayment($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('ID' => '', 'marker' => '', 'amount' => '', 'marks' => '', 'dateSent' => '', 'dateReceived' => '');
     $this->table = 'contractPayments';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:contractpayment.php

示例2: Referral

 function Referral($codeIgniterDB = null)
 {
     parent::Crud($codeIgniterDB);
     $this->data = array('user' => '', 'referee' => '', 'ipRequested' => '', 'paypalRef' => '');
     $this->table = 'referrals';
     $this->key = 'referee';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:referral.php

示例3: MarkerPref

 function MarkerPref()
 {
     parent::Crud();
     $this->table = 'markers';
     $this->data = array('email' => '', 'alertThreshold' => '', 'alertSubjects' => '', 'alertMax' => '', 'jobMin' => '', 'alertTime' => '');
     $this->key = 'email';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:markerpref.php

示例4: Offer

 public function Offer($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('id' => '', 'question' => '', 'value' => '', 'count' => '');
     $this->table = 'offers';
     $this->key = 'script';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:offer.php

示例5: Payment

 public function Payment($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('ID' => '', 'user' => '', 'amount' => '', 'method' => '', 'scripts' => '', 'transactionID' => '');
     $this->table = 'payments';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:payment.php

示例6: Email

 public function Email($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('ID' => '', 'sender' => '', 'receiver' => '', 'subject' => '', 'message' => '', 'error' => '', 'status' => '');
     $this->table = 'emails';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:email.php

示例7: Page

 public function Page($DBI = null)
 {
     parent::Crud($DBI);
     $this->table = 'pages';
     $this->data = array('fileName' => '', 'scriptKey' => '', 'oldFileName' => '');
     $this->key = 'fileName';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:page.php

示例8: Activator

 public function Activator($codeIgniterDB = null)
 {
     parent::Crud($codeIgniterDB);
     $this->table = 'activations';
     $this->data = array('email' => '', 'activationKey' => '');
     $this->key = 'activationKey';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:activator.php

示例9: Assessment

 /**
  * Marks relate to scripts on a one-to-one basis, and therefore they share
  * a primary key: the ID field of script, thus script.ID = mark.script
  *
  * @param unknown_type $codeIgniterDb
  * @return Mark
  */
 public function Assessment($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('script' => '', 'marker' => '', 'markData' => '', 'status' => '', 'targets' => '', 'generalComment' => '');
     $this->table = 'assessments';
     $this->key = 'marker';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:14,代碼來源:assessment.php

示例10: AssessmentFix

 public function AssessmentFix($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('email' => '', 'hadProblem' => '', 'paid' => '');
     $this->table = 'assessmentFix';
     $this->key = 'email';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:assessmentfix.php

示例11: Ticket

 public function Ticket($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('ID' => '', 'email' => '', 'subject' => '', 'message' => '');
     $this->table = 'tickets';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:ticket.php

示例12: Wage

 public function Wage($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('ID' => '', 'marker' => '', 'amount' => '', 'scripts' => '');
     $this->table = 'wages';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:7,代碼來源:wage.php

示例13: Script

 public function Script($codeIgniterDb = null)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array('email' => '', 'subject' => '', 'question' => '', 'ID' => '', 'pageKeys' => '', 'status' => '');
     // pagekeys in a string of pageKey[|key...]
     $this->_pages = new PageGroup($this, $this->DBI);
     $this->table = 'scripts';
     $this->key = 'ID';
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:9,代碼來源:script.php

示例14: Account

 /**
  * Creates a new account, requiring a normal CRUD data array to ensure that the base db columns
  * are added.
  * 
  * @param $codeIgniterDb
  * @param $data pass a normal CRUD data array here instead of defining it in the constructor
  * @return unknown_type
  */
 public function Account($codeIgniterDb = null, $data)
 {
     parent::Crud($codeIgniterDb);
     $this->data = array_merge(array('failedLogins' => '', 'lastLoggedIn' => '', 'passwordResetKey' => ''), $data);
 }
開發者ID:cybercog,項目名稱:exambuff,代碼行數:13,代碼來源:account.php


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