本文整理汇总了PHP中Quiz::removeAllMemberQuizresults方法的典型用法代码示例。如果您正苦于以下问题:PHP Quiz::removeAllMemberQuizresults方法的具体用法?PHP Quiz::removeAllMemberQuizresults怎么用?PHP Quiz::removeAllMemberQuizresults使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Quiz
的用法示例。
在下文中一共展示了Quiz::removeAllMemberQuizresults方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete()
{
global $USER;
if (Security::authorized(ADMIN) or $USER->getId() == $this->getId()) {
Adressbok::removeAllMedlemKontakter($this);
Anslagstavla::deleteAllMemberPosts($this);
$this->deleteAllProfilDataVal();
//ta bort alla mail
MotiomeraMail::removeAllMemberMail($this);
MotiomeraMail_Folders::deleteMemberFolders($this);
//mal tabellen verkar oanvänd, nedanstående rad ej testad
//MalManager::removeAllMedlemMal($this);
Help::removeAllMedlemAvfardade($this);
Quiz::removeAllMemberQuizresults($this);
Fotoalbum::removeAllMedlemFolders($this);
//lag inte i burk atm, nedanstående rad ej testad
//Lag::removeMedlemFromAllLag($this);
/* remove member from foretagsnycklar */
$foretag = Foretag::loadByMedlem($this);
if (isset($foretag)) {
$foretag->gaUr($this->getId());
}
/* inga matchande klasser för mindre tabeller */
global $db;
$tables = array('mm_pokal', 'mm_medalj', 'mm_help_medlem_noshow');
foreach ($tables as $table) {
$sql = 'DELETE FROM ' . $table . ' WHERE medlem_id = "' . $this->getId() . '"';
$db->nonquery($sql);
}
//mm_order, mm_prenumeration töms ej avsiktligen
//ta bort medlemmen ur grupper (och grupper den skapat)
$agrupp = Grupp::listByMedlem($this);
foreach ($agrupp as $grupp) {
if ($grupp->getSkapareId() == $this->getId()) {
$grupp->delete();
}
/* else
$grupp->leaveGrupp($this); */
}
Grupp::flushMemberFromGroups($this);
Stracka::deleteUserStrackor($this);
$asteg = Steg::listByMedlem($this);
foreach ($asteg as $steg) {
$steg->delete();
}
FeedItem::deleteAllMedlemFeedItems($this);
parent::delete();
}
}