CoreFiles by mySites.guru
StorageInterface.php45 lines, 892 bytes, from Joomla_5.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta1
md5
3bd1d7132b3ae2a9641e87eca43065c0
sha1
1c7f0c88fd81b7e5c261d560cf4872f54e0e00db
sha256
bf5d32585dfbbb955fd1fc9d45c8fb29dcad7459c03e4c96f616f6d840f91f67
<?php
/*
 * This file is part of the DebugBar package.
 *
 * (c) 2013 Maxime Bouroumeau-Fuseau
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace DebugBar\Storage;

interface StorageInterface
{
    /**
     * Saves collected data
     *
     * @param string $id
     * @param string $data
     */
    function save($id, $data);

    /**
     * Returns collected data with the specified id
     *
     * @param string $id
     * @return array
     */
    function get($id);

    /**
     * Returns a metadata about collected data
     *
     * @param array $filters
     * @param integer $max
     * @param integer $offset
     * @return array
     */
    function find(array $filters = array(), $max = 20, $offset = 0);

    /**
     * Clears all the collected data
     */
    function clear();
}

The same content is in 200 releases, Joomla 4.0.0-alpha5 to 5.3.0-alpha3. See them all, or every version of this file.