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