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