Skip to content

Instantly share code, notes, and snippets.

@GianPierree
Forked from gustvvo/ListGroup
Last active October 4, 2017 20:58
Show Gist options
  • Save GianPierree/799caa542b09341fa2805e15198de337 to your computer and use it in GitHub Desktop.
Save GianPierree/799caa542b09341fa2805e15198de337 to your computer and use it in GitHub Desktop.
Listar Grupos de trabajo.
CModule::IncludeModule("socialnetwork");
$res1 = array();
$res = CSocNetGroup::GetList(
$arOrder = array("ID" => "DESC"),
$arFilter = array("CLOSED" => "N"),
$arGroupBy = false,
$arNavStartParams = false,
$arSelectFields = array()
);
while($ar = $res->Fetch())
{
array_push($res1,$ar["NAME"]);
//echo count($ar)."<br>";
//echo '<pre>';print_r($ar);echo '</pre>';
}
echo "<pre>"; print_r($res1);echo "</pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment