Пример #1
0
 public function insert()
 {
     $this->set('created', Gpf_DbEngine_Database::getDateString());
     $this->set('downloads', 0);
     $this->set('referenced', 0);
     return parent::insert();
 }
Пример #2
0
 public function insert()
 {
     $password = $this->get(Gpf_Db_Table_AuthUsers::PASSWORD);
     if (strlen(trim($password)) == 0) {
         $this->set(Gpf_Db_Table_AuthUsers::PASSWORD, Gpf_Common_String::generatePassword(8));
     }
     $this->generateAuthToken();
     $this->setIp(Gpf_Http::getRemoteIp());
     parent::insert();
 }
Пример #3
0
 public function insert()
 {
     $this->set('wordlength', strlen($this->get('wordtext')));
     $qgrams = Gpf_Search_SearchEngine::getQGramPairsArray($this->get('wordtext'));
     foreach ($qgrams as $id => $qgram) {
         if ($id < Gpf_Search_SearchEngine::QGRAM_COUNT) {
             $this->set('w' . ($id + 1), $qgram);
         }
     }
     parent::insert();
 }
Пример #4
0
 public function insert()
 {
     if (!$this->get('scheduled_at')) {
         $this->set('scheduled_at', $this->createDatabase()->getDateString());
     }
     if (!$this->get('status')) {
         $this->set('status', Gpf_Db_Table_MailOutbox::STATUS_PENDING);
     }
     $this->set('retry_nr', 0);
     $this->set('error_msg', '');
     parent::insert();
 }
Пример #5
0
 public function insert() {
     parent::insert();
 }
Пример #6
0
 public function insert($createDefaultCommissionGroup = true) {
     parent::insert();
     if ($createDefaultCommissionGroup) {
         $this->createDefaultCommissionGroup();
     }
 }
Пример #7
0
 public function insert()
 {
     $this->set('created', Gpf_DbEngine_Database::getDateString());
     parent::insert();
 }
 function insert()
 {
     $this->set(Gpf_Db_Table_PasswordRequests::CREATED, Gpf_DbEngine_Database::getDateString());
     $this->setStatus(Gpf_Db_Table_PasswordRequests::STATUS_PENDING);
     parent::insert();
 }
Пример #9
0
 public function insert()
 {
     $this->set('imported', Gpf_DbEngine_Database::getDateString());
     $this->setId($this->generateId());
     $this->checkIsDefaultStatus();
     return parent::insert();
 }
 public function insert()
 {
     $this->setVersion();
     $this->set(Gpf_Db_Table_InstalledTemplates::CHANGED, Gpf_Common_DateUtils::now());
     parent::insert();
 }
Пример #11
0
 public function insert()
 {
     $this->set(Gpf_Db_Table_Tasks::DATECREATED, Gpf_Common_DateUtils::now());
     $this->set(Gpf_Db_Table_Tasks::DATECHANGED, Gpf_Common_DateUtils::now());
     if (is_null($this->getAccountId()) || $this->getAccountId() === '') {
         $this->set(Gpf_Db_Table_Tasks::ACCOUNTID, Gpf_Session::getInstance()->getAuthUser()->getAccountId());
     }
     $this->setProgressMessage($this->_('Waiting'));
     parent::insert();
 }
Пример #12
0
 public function insert()
 {
     try {
         $this->setIsCustom($this->isCustom());
     } catch (Gpf_Exception $e) {
         $this->setIsCustom(false);
     }
     if (!strlen($this->getAccountId())) {
         $this->setAccountId(Gpf_Session::getInstance()->getAuthUser()->getAccountId());
     }
     $this->setCreated(Gpf_Common_DateUtils::now());
     return parent::insert();
 }
 protected function insert(Gpf_DbEngine_Row $dbRow) {
     if ($dbRow instanceof Pap_Db_Campaign) {
         $dbRow->insert(false);
         return;
     }
     parent::insert($dbRow);
 }
Пример #14
0
 public function insert()
 {
     if (strlen($this->getHtmlBody())) {
         $this->setHtmlBody($this->replaceVariables($this->getHtmlBody()));
     }
     if (strlen($this->getTextBody())) {
         $this->setTextBody($this->replaceVariables($this->getTextBody()));
     }
     $this->setSubject($this->replaceVariables($this->getSubject()));
     $this->set('created', $this->createDatabase()->getDateString());
     $this->set('hdr_message_id', $this->getUniqueMd5());
     if (!strlen($this->get('accountuserid'))) {
         try {
             $userId = Gpf_Session::getAuthUser()->getUserId();
         } catch (Exception $e) {
             $userId = null;
         }
         $this->set('accountuserid', $userId);
     }
     if (!strlen($this->getFromMail())) {
         $this->setFromMail($this->getMailAccountFromEmail());
     }
     $this->set('unique_message_id', $this->getUniqueMd5() . '@gwtphp.com');
     parent::insert();
 }
 protected function insert(Gpf_DbEngine_Row $dbRow)
 {
     $dbRow->insert();
 }
Пример #16
0
 public function insert()
 {
     $tpl = $this->createOptInMailTemplate();
     $this->setOptInTemplateId($tpl->getId());
     parent::insert();
 }