public function ContractPayment($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('ID' => '', 'marker' => '', 'amount' => '', 'marks' => '', 'dateSent' => '', 'dateReceived' => ''); $this->table = 'contractPayments'; $this->key = 'ID'; }
function Referral($codeIgniterDB = null) { parent::Crud($codeIgniterDB); $this->data = array('user' => '', 'referee' => '', 'ipRequested' => '', 'paypalRef' => ''); $this->table = 'referrals'; $this->key = 'referee'; }
function MarkerPref() { parent::Crud(); $this->table = 'markers'; $this->data = array('email' => '', 'alertThreshold' => '', 'alertSubjects' => '', 'alertMax' => '', 'jobMin' => '', 'alertTime' => ''); $this->key = 'email'; }
public function Offer($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('id' => '', 'question' => '', 'value' => '', 'count' => ''); $this->table = 'offers'; $this->key = 'script'; }
public function Payment($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('ID' => '', 'user' => '', 'amount' => '', 'method' => '', 'scripts' => '', 'transactionID' => ''); $this->table = 'payments'; $this->key = 'ID'; }
public function Email($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('ID' => '', 'sender' => '', 'receiver' => '', 'subject' => '', 'message' => '', 'error' => '', 'status' => ''); $this->table = 'emails'; $this->key = 'ID'; }
public function Page($DBI = null) { parent::Crud($DBI); $this->table = 'pages'; $this->data = array('fileName' => '', 'scriptKey' => '', 'oldFileName' => ''); $this->key = 'fileName'; }
public function Activator($codeIgniterDB = null) { parent::Crud($codeIgniterDB); $this->table = 'activations'; $this->data = array('email' => '', 'activationKey' => ''); $this->key = 'activationKey'; }
/** * 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'; }
public function AssessmentFix($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('email' => '', 'hadProblem' => '', 'paid' => ''); $this->table = 'assessmentFix'; $this->key = 'email'; }
public function Ticket($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('ID' => '', 'email' => '', 'subject' => '', 'message' => ''); $this->table = 'tickets'; $this->key = 'ID'; }
public function Wage($codeIgniterDb = null) { parent::Crud($codeIgniterDb); $this->data = array('ID' => '', 'marker' => '', 'amount' => '', 'scripts' => ''); $this->table = 'wages'; $this->key = 'ID'; }
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'; }
/** * 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); }