Thomas Bruederli
2014-04-08 188304872066eef4b20c305f9cd6ea939dd419e0
program/lib/Roundcube/rcube_result_multifolder.php
@@ -169,6 +169,21 @@
    }
    /**
     * Slices data set.
     *
     * @param $offset Offset (as for PHP's array_slice())
     * @param $length Number of elements (as for PHP's array_slice())
     *
     */
    public function slice($offset, $length)
    {
        $data = array_slice($this->get(), $offset, $length);
        $this->index = $data;
        $this->meta['count'] = count($data);
    }
    /**
     * Filters data set. Removes elements not listed in $ids list.
     *
     * @param array $ids List of IDs to keep.