Easy comparison of two Profile objects
This commit is contained in:
parent
e567406c9f
commit
f9d82a6ac5
@ -1571,6 +1571,11 @@ class Profile extends Managed_DataObject
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function sameAs(Profile $other)
|
||||
{
|
||||
return $this->getID() === $other->getID();
|
||||
}
|
||||
|
||||
/**
|
||||
* This will perform shortenLinks with the connected User object.
|
||||
*
|
||||
|
@ -132,6 +132,11 @@ class User extends Managed_DataObject
|
||||
return $this->_profile[$this->id];
|
||||
}
|
||||
|
||||
public function sameAs(Profile $other)
|
||||
{
|
||||
return $this->getProfile()->sameAs($other);
|
||||
}
|
||||
|
||||
public function getUri()
|
||||
{
|
||||
return $this->uri;
|
||||
|
Loading…
Reference in New Issue
Block a user