本文整理汇总了PHP中CSocNetLog::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP CSocNetLog::delete方法的具体用法?PHP CSocNetLog::delete怎么用?PHP CSocNetLog::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSocNetLog
的用法示例。
在下文中一共展示了CSocNetLog::delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: OnAfterIBlockElementDelete
public function OnAfterIBlockElementDelete($fields)
{
$errors = array();
if (Loader::includeModule('socialnetwork')) {
$states = CBPStateService::getDocumentStates(array('lists', get_called_class(), $fields['ID']));
foreach ($states as $workflowId => $state) {
$sourceId = CBPStateService::getWorkflowIntegerId($workflowId);
$resultQuery = CSocNetLog::getList(array(), array('EVENT_ID' => 'lists_new_element', 'SOURCE_ID' => $sourceId), false, false, array('ID'));
while ($log = $resultQuery->fetch()) {
CSocNetLog::delete($log['ID']);
}
}
}
CBPDocument::onDocumentDelete(array('lists', get_called_class(), $fields['ID']), $errors);
}
示例2: deleteSocnetLog
public static function deleteSocnetLog(array $listWorkflowId)
{
if (CModule::includeModule('socialnetwork')) {
foreach ($listWorkflowId as $workflowId) {
$sourceId = CBPStateService::getWorkflowIntegerId($workflowId);
$resultQuery = CSocNetLog::getList(array(), array('EVENT_ID' => 'lists_new_element', 'SOURCE_ID' => $sourceId), false, false, array('ID'));
while ($log = $resultQuery->fetch()) {
CSocNetLog::delete($log['ID']);
}
}
}
}