PostSocnetRightsTable::deleteByEntity: Bitrix method

      
<?php 
//  Bitrix\Blog\PostSocnetRightsTable :: deleteByEntity()
//  /dist/bitrix/modules/blog/lib/postsocnetrights.php:185

    
public static function deleteByEntity($value '')
    {
        if (
strlen($value) <= 0)
        {
            return 
false;
        }

        
$connection Application::getConnection();
        
$helper $connection->getSqlHelper();

        
$tableName self::getTableName();
        
$connection->queryExecute("DELETE FROM {$tableName} WHERE `ENTITY` = '".$helper->forSql($value)."'");

        return 
true;
    }