當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gpf_DbEngine_Row::insert方法代碼示例

本文整理匯總了PHP中Gpf_DbEngine_Row::insert方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gpf_DbEngine_Row::insert方法的具體用法?PHP Gpf_DbEngine_Row::insert怎麽用?PHP Gpf_DbEngine_Row::insert使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gpf_DbEngine_Row的用法示例。


在下文中一共展示了Gpf_DbEngine_Row::insert方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: insert

 public function insert()
 {
     $this->set('created', Gpf_DbEngine_Database::getDateString());
     $this->set('downloads', 0);
     $this->set('referenced', 0);
     return parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:File.class.php

示例2: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:10,代碼來源:AuthUser.class.php

示例3: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:11,代碼來源:Word.class.php

示例4: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:12,代碼來源:MailOutbox.class.php

示例5: insert

 public function insert() {
     parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:3,代碼來源:User.class.php

示例6: insert

 public function insert($createDefaultCommissionGroup = true) {
     parent::insert();
     if ($createDefaultCommissionGroup) {
         $this->createDefaultCommissionGroup();
     }
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:6,代碼來源:Campaign.class.php

示例7: insert

 public function insert()
 {
     $this->set('created', Gpf_DbEngine_Database::getDateString());
     parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:5,代碼來源:Log.class.php

示例8: insert

 function insert()
 {
     $this->set(Gpf_Db_Table_PasswordRequests::CREATED, Gpf_DbEngine_Database::getDateString());
     $this->setStatus(Gpf_Db_Table_PasswordRequests::STATUS_PENDING);
     parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:6,代碼來源:PasswordRequest.class.php

示例9: insert

 public function insert()
 {
     $this->set('imported', Gpf_DbEngine_Database::getDateString());
     $this->setId($this->generateId());
     $this->checkIsDefaultStatus();
     return parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:Rpc.php

示例10: insert

 public function insert()
 {
     $this->setVersion();
     $this->set(Gpf_Db_Table_InstalledTemplates::CHANGED, Gpf_Common_DateUtils::now());
     parent::insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:6,代碼來源:InstalledTemplate.class.php

示例11: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:10,代碼來源:Task.class.php

示例12: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:13,代碼來源:MailTemplate.class.php

示例13: insert

 protected function insert(Gpf_DbEngine_Row $dbRow) {
     if ($dbRow instanceof Pap_Db_Campaign) {
         $dbRow->insert(false);
         return;
     }
     parent::insert($dbRow);
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:CampaignsImportExport.class.php

示例14: insert

 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();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:25,代碼來源:Mail.class.php

示例15: insert

 protected function insert(Gpf_DbEngine_Row $dbRow)
 {
     $dbRow->insert();
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:4,代碼來源:ObjectImportExport.class.php


注:本文中的Gpf_DbEngine_Row::insert方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。