当前位置: 首页>>代码示例>>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;未经允许,请勿转载。