Documentation

Delete

mixed
CGroup::Delete(
 int id
)

The method removes group. Returns an instance of CDBResult on success, or false otherwise. Static method.

Parameters

ParameterDescription
id Group ID.

See Also

Examples of use

<?
if(IntVal($del_id)>2)
{
  $del_id = IntVal($del_id);
  $group = new CGroup;
  $DB->StartTransaction();
  if(!$group->Delete($del_id))
  {
    $DB->Rollback();
    $strError.=GetMessage("DELETE_ERROR");
  }
  $DB->Commit();
}
?>


© «Bitrix24», 2001-2024
Up