public static function getInstance(Application $app, $sbasid, $sbas_coll, $dmin, $dmax)
    {
        $cache_id = 'feed_' . md5($sbasid . '_' . $sbas_coll . '_' . $dmin . '_' . $dmax);

        try {
            $result = $app->getApplicationBox()->get_data_from_cache($cache_id);
            $result->setApplication($app);

            return $result;
        } catch (\Exception $e) {

        }
        $tmp = new self($app, $sbasid, $sbas_coll, $dmin, $dmax);

        $app->getApplicationBox()->set_data_to_cache($tmp, $cache_id);

        return $tmp;
    }
public static function getInstance(Application $app, $sbasid, $sbas_coll, $dmin, $dmax)
    {
        $cache_id = 'feed_' . md5($sbasid . '_' . $sbas_coll . '_' . $dmin . '_' . $dmax);

        try {
            $result = $app->getApplicationBox()->get_data_from_cache($cache_id);
            $result->setApplication($app);

            return $result;
        } catch (\Exception $e) {

        }
        $tmp = new self($app, $sbasid, $sbas_coll, $dmin, $dmax);

        $app->getApplicationBox()->set_data_to_cache($tmp, $cache_id);

        return $tmp;
    }
public static function getInstance ( Application $ app , $ sbasid , $ sbas_coll , $ dmin , $ dmax ) { $ cache_id = 'feed_' . md5 ( $ sbasid . '_' . $ sbas_coll . '_' . $ dmin . '_' . $ dmax ) ; try { $ result = $ app -> getApplicationBox ( ) -> get_data_from_cache ( $ cache_id ) ; $ result -> setApplication ( $ app ) ; return $ result ; } catch ( \ Exception $ e ) { } $ tmp = new self ( $ app , $ sbasid , $ sbas_coll , $ dmin , $ dmax ) ; $ app -> getApplicationBox ( ) -> set_data_to_cache ( $ tmp , $ cache_id ) ; return $ tmp ; }
Returns l'objet stockee dans le cache si i l existe sinon instancie
un nouveau objet dashboard_feed

@param Application $app
@param integer     $sbasid
@param string      $sbas_coll
@param mixed       $dmin
@param mixed       $dmax
Returns l objet stockee dans le cache si i l existe sinon instancie un nouveau objet dashboard_feed