Show
Ignore:
Timestamp:
06/29/08 19:57:14 (5 months ago)
Author:
llaumgui
Message:

Ajout des fetch stats et online

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/ezfluxbb/trunk/classes/ezfluxbbfetchfonctions.php

    r199 r200  
    2323 * ###################### END LICENSE BLOCK #################### 
    2424 * 
    25  * Classes regroupant les différents fetche de l'extension 
     25 * Classes regroupant les différents fetche de l'extension 
    2626 *  
    2727 * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 
     
    5555         
    5656         
     57         
     58        /** 
     59         * Fonction fetch permettant de retourner les statistique sur la board. 
     60         * 
     61         * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 
     62         * @since 1.0 
     63         *  
     64         * @return array 
     65         */ 
     66        function fetchStats() 
     67        { 
     68                $eZFluxBB               = eZFluxBB::instance(); 
     69                $stats                  = $eZFluxBB->getStats(); 
     70                 
     71                return array( 'result' => $stats ); 
     72        } 
     73         
     74 
     75         
     76        /** 
     77         * Fonction fetch permettant de retourner les statistique sur la board. 
     78         * 
     79         * @author Guillaume Kulakowski <guillaume_AT_llaumgui_DOT_com> 
     80         * @since 1.0 
     81         *  
     82         * @return array 
     83         */ 
     84        function fetchOnline() 
     85        { 
     86                $eZFluxBB               = eZFluxBB::instance(); 
     87                $online                 = $eZFluxBB->getOnline(); 
     88                 
     89                return array( 'result' => $online ); 
     90        } 
     91         
     92         
     93         
    5794        /** 
    5895         * XXX