use Friendica\BaseObject;
use Friendica\Database\DBA;
-require_once 'include/dba.php';
-
/**
* @brief functions for interacting with the permission set of an object (item, photo, event, ...)
*/
* Fetch the id of a given permission set. Generate a new one when needed
*
* @param array $postarray The array from an item, picture or event post
- * @return id
+ * @return int id
+ * @throws \Exception
*/
public static function fetchIDForPost(&$postarray)
{
* @param array $groups Possibly previously fetched group ids for that contact
*
* @return array of permission set ids.
+ * @throws \Exception
*/
static public function get($uid, $contact_id, $groups = null)