Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure

This commit is contained in:
Michael 2019-03-26 21:36:46 +00:00
commit 55325f191b
122 changed files with 5068 additions and 2006 deletions

View file

@ -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
View 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.