���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/lib/core/lhuser/lhgroup.php
���ѧ٧ѧ�
<?php class erLhcoreClassGroup{ function getGroupList() { $db = ezcDbInstance::get(); $stmt = $db->prepare('SELECT * FROM lh_group ORDER BY id ASC'); $stmt->execute(); $rows = $stmt->fetchAll(); return $rows; } public static function deleteGroup($group_id) { $Group = erLhcoreClassUser::getSession()->load( 'erLhcoreClassModelGroup', $group_id); erLhcoreClassUser::getSession()->delete($Group); $q = ezcDbInstance::get()->createDeleteQuery(); // Transfered chats to user $q->deleteFrom( 'lh_groupuser' )->where( $q->expr->eq( 'group_id', $group_id ) ); $stmt = $q->prepare(); $stmt->execute(); // Transfered chats to user $q->deleteFrom( 'lh_grouprole' )->where( $q->expr->eq( 'group_id', $group_id ) ); $stmt = $q->prepare(); $stmt->execute(); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�