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


PHP BaseObject::delete方法代碼示例

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


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

示例1: delete

 public function delete()
 {
     $mds = ModelDescription::get_by_modelId($this->id);
     foreach ($mds as $md) {
         $md->delete();
     }
     if ($this->modelType == 'V') {
         $pm = ParticipleModel::loadByVerbModel($this->number);
         $pm->delete();
     }
     parent::delete();
 }
開發者ID:florinp,項目名稱:dexonline,代碼行數:12,代碼來源:FlexModel.php

示例2: delete

 public function delete()
 {
     WikiKeyword::deleteByWikiArticleId($this->id);
     parent::delete();
 }
開發者ID:florinp,項目名稱:dexonline,代碼行數:5,代碼來源:WikiArticle.php

示例3: delete

 public function delete($connection = null)
 {
     if (!isset($connection)) {
         $connection = QubitTransactionFilter::getConnection(QubitObject::DATABASE_NAME);
     }
     $statement = $connection->prepare('
   DELETE FROM ' . QubitSlug::TABLE_NAME . '
   WHERE ' . QubitSlug::OBJECT_ID . ' = ?');
     $statement->execute(array($this->id));
     // Delete other names
     if (0 < count($this->otherNames)) {
         foreach ($this->otherNames as $otherName) {
             $otherName->delete();
         }
     }
     parent::delete($connection);
 }
開發者ID:nurfiantara,項目名稱:ehri-ica-atom,代碼行數:17,代碼來源:QubitObject.php

示例4: delete

 function delete()
 {
     // TODO: Delete thumbnail and its directory (if it becomes empty)
     VisualTag::delete_all_by_imageId($this->id);
     return parent::delete();
 }
開發者ID:Jobava,項目名稱:mirror-dexonline,代碼行數:6,代碼來源:Visual.php

示例5: delete

 public function delete()
 {
     db_execute("update Inflection set rank = rank - 1 where modelType = '{$this->modelType}' and rank > {$this->rank}");
     parent::delete();
 }
開發者ID:florinp,項目名稱:dexonline,代碼行數:5,代碼來源:Inflection.php

示例6: delete

 public function delete()
 {
     if ($this->id) {
         if ($this->hasModelType('VT')) {
             $this->deleteParticiple();
         }
         if ($this->hasModelType('VT') || $this->hasModelType('V')) {
             $this->deleteLongInfinitive();
         }
         LexemDefinitionMap::deleteByLexemId($this->id);
         Meaning::delete_all_by_lexemId($this->id);
         Relation::delete_all_by_lexemId($this->id);
         LexemModel::delete_all_by_lexemId($this->id);
     }
     // Clear the variantOfId field for lexems having $this as main.
     $lexemsToClear = Lexem::get_all_by_variantOfId($this->id);
     foreach ($lexemsToClear as $l) {
         $l->variantOfId = null;
         $l->save();
     }
     parent::delete();
 }
開發者ID:florinp,項目名稱:dexonline,代碼行數:22,代碼來源:Lexem.php

示例7: delete

 function delete()
 {
     InflectedForm::delete_all_by_lexemModelId($this->id);
     LexemSource::delete_all_by_lexemModelId($this->id);
     // delete_all_by_lexemModelId doesn't work for FullTextIndex because it doesn't have an ID column
     Model::factory('FullTextIndex')->where('lexemModelId', $this->id)->delete_many();
     parent::delete();
 }
開發者ID:Jobava,項目名稱:mirror-dexonline,代碼行數:8,代碼來源:LexemModel.php

示例8: delete

 public function delete()
 {
     MeaningSource::deleteByMeaningId($this->id);
     MeaningTagMap::deleteByMeaningId($this->id);
     Relation::delete_all_by_meaningId($this->id);
     parent::delete();
 }
開發者ID:florinp,項目名稱:dexonline,代碼行數:7,代碼來源:Meaning.php

示例9: delete

 public function delete()
 {
     if ($this->id) {
         if ($this->modelType == 'VT') {
             $this->deleteParticiple($this->modelNumber);
         }
         if ($this->modelType == 'VT' || $this->modelType == 'V') {
             $this->deleteLongInfinitive();
         }
         LexemDefinitionMap::deleteByLexemId($this->id);
         InflectedForm::deleteByLexemId($this->id);
     }
     parent::delete();
 }
開發者ID:nastasie-octavian,項目名稱:DEXonline,代碼行數:14,代碼來源:Lexem.php


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