/** * @SWG\Definition( * definition="User", * required={"guid","name"}, * @SWG\Property(property="guid", type="integer"), * @SWG\Property(property="name", type="string"), * @SWG\Property(property="icon_url", type="string"), * @SWG\Property(property="url", type="string") * ) */ private function parseUser(\ElggUser $user) { return array('guid' => $user->guid, 'name' => html_entity_decode($user->name, ENT_QUOTES), 'icon_url' => $user->getIconURL(), 'url' => $user->getURL()); }