Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure
This commit is contained in:
@@ -109,6 +109,16 @@ class Contact extends BaseObject
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param integer $id
|
||||
* @return array|boolean Contact record if it exists, false otherwise
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getById($id)
|
||||
{
|
||||
return DBA::selectFirst('contact', [], ['id' => $id]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Tests if the given contact is a follower
|
||||
*
|
||||
|
||||
5
src/Model/README.md
Normal file
5
src/Model/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## Friendica\Model
|
||||
|
||||
Models are the glue between the business logic of the app and the datastore(s).
|
||||
|
||||
In the namespace Model should only be static classes that interact with the DB with the same name as a database table.
|
||||
Reference in New Issue
Block a user