当前位置: 首页>>代码示例>>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;未经允许,请勿转载。