utils = $utils; } /** * Gets all the credential data for the given user * @param $userId * @param $item_guid * @return SharingACL[] */ public function getCredentialPermissions(IUser $userId, $item_guid){ $sql = "SELECT * FROM {{self::TABLE_NAME}} WHERE user_id = ? AND item_guid = ?"; return $this->findEntities($sql, [$userId, $item_guid]); } public function createACLEntry(SharingACL $acl){ return $this->insert($acl); } }