本文整理汇总了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';
}
示例2: Referral
function Referral($codeIgniterDB = null)
{
parent::Crud($codeIgniterDB);
$this->data = array('user' => '', 'referee' => '', 'ipRequested' => '', 'paypalRef' => '');
$this->table = 'referrals';
$this->key = 'referee';
}
示例3: MarkerPref
function MarkerPref()
{
parent::Crud();
$this->table = 'markers';
$this->data = array('email' => '', 'alertThreshold' => '', 'alertSubjects' => '', 'alertMax' => '', 'jobMin' => '', 'alertTime' => '');
$this->key = 'email';
}
示例4: Offer
public function Offer($codeIgniterDb = null)
{
parent::Crud($codeIgniterDb);
$this->data = array('id' => '', 'question' => '', 'value' => '', 'count' => '');
$this->table = 'offers';
$this->key = 'script';
}
示例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';
}
示例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';
}
示例7: Page
public function Page($DBI = null)
{
parent::Crud($DBI);
$this->table = 'pages';
$this->data = array('fileName' => '', 'scriptKey' => '', 'oldFileName' => '');
$this->key = 'fileName';
}
示例8: Activator
public function Activator($codeIgniterDB = null)
{
parent::Crud($codeIgniterDB);
$this->table = 'activations';
$this->data = array('email' => '', 'activationKey' => '');
$this->key = 'activationKey';
}
示例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';
}
示例10: AssessmentFix
public function AssessmentFix($codeIgniterDb = null)
{
parent::Crud($codeIgniterDb);
$this->data = array('email' => '', 'hadProblem' => '', 'paid' => '');
$this->table = 'assessmentFix';
$this->key = 'email';
}
示例11: Ticket
public function Ticket($codeIgniterDb = null)
{
parent::Crud($codeIgniterDb);
$this->data = array('ID' => '', 'email' => '', 'subject' => '', 'message' => '');
$this->table = 'tickets';
$this->key = 'ID';
}
示例12: Wage
public function Wage($codeIgniterDb = null)
{
parent::Crud($codeIgniterDb);
$this->data = array('ID' => '', 'marker' => '', 'amount' => '', 'scripts' => '');
$this->table = 'wages';
$this->key = 'ID';
}
示例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';
}
示例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);
}