本文整理汇总了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();
}
示例2: delete
public function delete()
{
WikiKeyword::deleteByWikiArticleId($this->id);
parent::delete();
}
示例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);
}
示例4: delete
function delete()
{
// TODO: Delete thumbnail and its directory (if it becomes empty)
VisualTag::delete_all_by_imageId($this->id);
return parent::delete();
}
示例5: delete
public function delete()
{
db_execute("update Inflection set rank = rank - 1 where modelType = '{$this->modelType}' and rank > {$this->rank}");
parent::delete();
}
示例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();
}
示例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();
}
示例8: delete
public function delete()
{
MeaningSource::deleteByMeaningId($this->id);
MeaningTagMap::deleteByMeaningId($this->id);
Relation::delete_all_by_meaningId($this->id);
parent::delete();
}
示例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();
}