mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Merge pull request #5226 from annando/even-more-abstraction
More item calls have been replaced with the new functions
This commit is contained in:
commit
133cd342d4
6 changed files with 54 additions and 132 deletions
|
@ -85,7 +85,7 @@ class Item extends BaseObject
|
|||
$table = "`item` " . self::constructJoins($uid, $select_fields . $condition_string . $param_string, false);
|
||||
|
||||
$sql = "SELECT " . $select_fields . " FROM " . $table . $condition_string . $param_string;
|
||||
//echo $sql;
|
||||
|
||||
return dba::p($sql, $condition);
|
||||
}
|
||||
|
||||
|
@ -160,6 +160,13 @@ class Item extends BaseObject
|
|||
*/
|
||||
private static function fieldlist($selected)
|
||||
{
|
||||
/*
|
||||
These Fields are not added below. They are here to for bug search.
|
||||
'type', 'extid', 'changed', 'moderated', 'target-type', 'target', 'resource-id',
|
||||
'tag', 'inform', 'pubmail', 'visible', 'bookmark', 'unseen', 'deleted',
|
||||
'forum_mode', 'mention', 'global', 'shadow',
|
||||
*/
|
||||
|
||||
$item_fields = ['author-id', 'owner-id', 'contact-id', 'uid', 'id', 'parent',
|
||||
'uri', 'thr-parent', 'parent-uri', 'content-warning',
|
||||
'commented', 'created', 'edited', 'received', 'verb', 'object-type', 'postopts', 'plink',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue