本文整理汇总了PHP中ElggGroup::getIconURL方法的典型用法代码示例。如果您正苦于以下问题:PHP ElggGroup::getIconURL方法的具体用法?PHP ElggGroup::getIconURL怎么用?PHP ElggGroup::getIconURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ElggGroup
的用法示例。
在下文中一共展示了ElggGroup::getIconURL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parseGroup
/**
* @SWG\Definition(
* definition="Group",
* required={"guid","name", "membership"},
* @SWG\Property(property="guid", type="integer"),
* @SWG\Property(property="name", type="string"),
* @SWG\Property(property="description", type="string"),
* @SWG\Property(property="membership", type="string", description="Can be open or closed."),
* @SWG\Property(property="icon_url", type="string"),
* @SWG\Property(property="url", type="string"),
* @SWG\Property(property="activities_unread_count", type="integer"),
* @SWG\Property(property="time_created", type="string")
* )
*/
private function parseGroup(\ElggGroup $group)
{
$user = elgg_get_logged_in_user_entity();
return array('guid' => $group->guid, 'name' => html_entity_decode($group->name, ENT_QUOTES), 'description' => html_entity_decode($group->description, ENT_QUOTES), 'membership' => $group->membership === 2 ? "open" : "closed", 'icon_url' => $group->getIconURL(), 'url' => $group->getURL(), 'activities_unread_count' => $this->handler->getContainerUnreadCount($user, $group), 'time_created' => date('c', $group->time_created));
}