return true;
}
- public static function toBoolean($val)
+ private static function toBoolean($val)
{
if (($val == "true") || ($val == 1)) {
return true;
* @param object $data POCO data
* @return array Server data
*/
- public static function detectPocoData($data)
+ private static function detectPocoData($data)
{
$server = false;
* @param string $server_url address of the server
* @return array Server data
*/
- public static function fetchNodeinfo($server_url)
+ private static function fetchNodeinfo($server_url)
{
$serverret = z_fetch_url($server_url."/.well-known/nodeinfo");
if (!$serverret["success"]) {
* @param string $body Front page of the server
* @return array Server data
*/
- public static function detectServerType($body)
+ private static function detectServerType($body)
{
$server = false;
*
* @param string $poco URL to the POCO endpoint
*/
- public static function fetchServerlist($poco)
+ private static function fetchServerlist($poco)
{
$serverret = z_fetch_url($poco."/@server");
if (!$serverret["success"]) {
}
}
- public static function discoverFederation()
+ private static function discoverFederation()
{
$last = Config::get('poco', 'last_federation_discovery');
}
}
- public static function discoverServerUsers($data, $server)
+ private static function discoverServerUsers($data, $server)
{
if (!isset($data->entry)) {
return;
}
}
- public static function discoverServer($data, $default_generation = 0)
+ private static function discoverServer($data, $default_generation = 0)
{
if (!isset($data->entry) || !count($data->entry)) {
return false;