use Friendica\Core\Worker;
use Friendica\Database\DBM;
use Friendica\Model\GlobalContact;
+use Friendica\Model\Profile;
use Friendica\Network\Probe;
-use Friendica\Object\Profile;
function profiles_init(App $a) {
--- /dev/null
+<?php
+
+/**
+ * @file src/Model/Profile.php
+ */
+
+namespace Friendica\Model;
+
+class Profile
+{
+ /**
+ * @brief Returns a formatted location string from the given profile array
+ *
+ * @param array $profile Profile array (Generated from the "profile" table)
+ *
+ * @return string Location string
+ */
+ public static function formatLocation(array $profile)
+ {
+ $location = '';
+
+ if ($profile['locality']) {
+ $location .= $profile['locality'];
+ }
+
+ if ($profile['region'] && ($profile['locality'] != $profile['region'])) {
+ if ($location) {
+ $location .= ', ';
+ }
+
+ $location .= $profile['region'];
+ }
+
+ if ($profile['country-name']) {
+ if ($location) {
+ $location .= ', ';
+ }
+
+ $location .= $profile['country-name'];
+ }
+
+ return $location;
+ }
+}
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Database\DBM;
-use Friendica\Object\Profile;
+use Friendica\Model\Profile;
use Friendica\Protocol\Email;
use Friendica\Util\XML;
+++ /dev/null
-<?php
-
-/**
- * @file src/Object/Profile.php
- */
-
-namespace Friendica\Object;
-
-use Friendica\BaseObject;
-
-class Profile extends BaseObject
-{
- /**
- * @brief Returns a formatted location string from the given profile array
- *
- * @param array $profile Profile array (Generated from the "profile" table)
- *
- * @return string Location string
- */
- public static function formatLocation(array $profile)
- {
- $location = '';
-
- if ($profile['locality']) {
- $location .= $profile['locality'];
- }
-
- if ($profile['region'] && ($profile['locality'] != $profile['region'])) {
- if ($location) {
- $location .= ', ';
- }
-
- $location .= $profile['region'];
- }
-
- if ($profile['country-name']) {
- if ($location) {
- $location .= ', ';
- }
-
- $location .= $profile['country-name'];
- }
-
- return $location;
- }
-}
use Friendica\Core\Worker;
use Friendica\Database\DBM;
use Friendica\Model\GlobalContact;
+use Friendica\Model\Profile;
use Friendica\Network\Probe;
use Friendica\Object\Contact;
-use Friendica\Object\Profile;
use Friendica\Util\XML;
use dba;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
use Friendica\Model\GlobalContact;
+use Friendica\Model\Profile;
use Friendica\Network\Probe;
-use Friendica\Object\Profile;
use dba;
use DOMDocument;
use DomXPath;