Skip to content

Commit

Permalink
Add abstract method rcube_storage::fetch_headers()
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jan 24, 2024
1 parent 6f8fc03 commit 70faac5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ parameters:
count: 18
path: installer/test.php

-
message: "#^Call to an undefined method rcube_storage\\:\\:fetch_headers\\(\\)\\.$#"
count: 1
path: plugins/archive/archive.php

-
message: """
#^Call to deprecated method get_uids\\(\\) of class rcmail\\:
Expand Down
12 changes: 12 additions & 0 deletions program/lib/Roundcube/rcube_storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,18 @@ abstract public function get_namespace($name = null);
*/
abstract public function count($folder = null, $mode = 'ALL', $force = false, $status = true);

/**
* Fetches messages headers (by UID)
*
* @param string $folder Folder name
* @param array $msgs Message UIDs
* @param bool $sort Enables result sorting by $msgs
* @param bool $force Disables cache use
*
* @return array Messages headers indexed by UID
*/
abstract public function fetch_headers($folder, $msgs, $sort = true, $force = false);

/**
* Public method for listing message flags
*
Expand Down

0 comments on commit 70faac5

Please sign in to comment.