X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FContactSelector.php;h=c834f8c514c4ccfcec0e63161a3596ca2178ca68;hb=6749b2c887552feef3a671c4063425b11a92014a;hp=2fd9f61fe4bea08bc9c3b61f8681b59f4e62b910;hpb=e69497454b062305db904a4cd4bcae3453de7a48;p=friendica.git diff --git a/src/Content/ContactSelector.php b/src/Content/ContactSelector.php index 2fd9f61fe4..c834f8c514 100644 --- a/src/Content/ContactSelector.php +++ b/src/Content/ContactSelector.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica\Content; use Friendica\Core\Hook; @@ -19,7 +36,7 @@ class ContactSelector /** * @param string $current current * @param boolean $disabled optional, default false - * @return object + * @return string */ public static function pollInterval($current, $disabled = false) { @@ -47,7 +64,7 @@ class ContactSelector /** * @param string $profile Profile URL * @return string Server URL - * @throws \Friendica\Network\HTTPException\InternalServerErrorException + * @throws \Exception */ private static function getServerURLForProfile($profile) { @@ -147,7 +164,7 @@ class ContactSelector * @param string $network network * @param string $profile optional, default empty * @return string - * @throws \Friendica\Network\HTTPException\InternalServerErrorException + * @throws \Exception */ public static function networkToIcon($network, $profile = "") { @@ -195,43 +212,4 @@ class ContactSelector return $network_icon; } - - /** - * @param string $current optional, default empty - * @param string $suffix optionsl, default empty - * @return string - * @throws \Friendica\Network\HTTPException\InternalServerErrorException - */ - public static function sexualPreference($current = "", $suffix = "") - { - $o = ''; - $select = [ - '' => DI::l10n()->t('No answer'), - 'Males' => DI::l10n()->t('Males'), - 'Females' => DI::l10n()->t('Females'), - 'Gay' => DI::l10n()->t('Gay'), - 'Lesbian' => DI::l10n()->t('Lesbian'), - 'No Preference' => DI::l10n()->t('No Preference'), - 'Bisexual' => DI::l10n()->t('Bisexual'), - 'Autosexual' => DI::l10n()->t('Autosexual'), - 'Abstinent' => DI::l10n()->t('Abstinent'), - 'Virgin' => DI::l10n()->t('Virgin'), - 'Deviant' => DI::l10n()->t('Deviant'), - 'Fetish' => DI::l10n()->t('Fetish'), - 'Oodles' => DI::l10n()->t('Oodles'), - 'Nonsexual' => DI::l10n()->t('Nonsexual'), - ]; - - Hook::callAll('sexpref_selector', $select); - - $o .= "'; - return $o; - } }