mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 12:24:28 +02:00
Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure
This commit is contained in:
commit
55325f191b
122 changed files with 5068 additions and 2006 deletions
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue