本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例5: insert
public function insert() {
parent::insert();
}
示例6: insert
public function insert($createDefaultCommissionGroup = true) {
parent::insert();
if ($createDefaultCommissionGroup) {
$this->createDefaultCommissionGroup();
}
}
示例7: insert
public function insert()
{
$this->set('created', Gpf_DbEngine_Database::getDateString());
parent::insert();
}
示例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();
}
示例9: insert
public function insert()
{
$this->set('imported', Gpf_DbEngine_Database::getDateString());
$this->setId($this->generateId());
$this->checkIsDefaultStatus();
return parent::insert();
}
示例10: insert
public function insert()
{
$this->setVersion();
$this->set(Gpf_Db_Table_InstalledTemplates::CHANGED, Gpf_Common_DateUtils::now());
parent::insert();
}
示例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();
}
示例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();
}
示例13: insert
protected function insert(Gpf_DbEngine_Row $dbRow) {
if ($dbRow instanceof Pap_Db_Campaign) {
$dbRow->insert(false);
return;
}
parent::insert($dbRow);
}
示例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();
}
示例15: insert
protected function insert(Gpf_DbEngine_Row $dbRow)
{
$dbRow->insert();
}