Changeset 9233

Show
Ignore:
Timestamp:
08/11/08 18:11:47 (5 months ago)
Author:
afz
Message:

Quotes now can export content of quotes via standalone action

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Quotes/Actions.php

    r8067 r9233  
    1818$actions['Admin']       = array('AdminAction'); 
    1919$actions['QuoteGroups'] = array('AdminAction'); 
     20 
     21/* Standalone actions */ 
     22$actions['QuotesByGroup'] = array('StandaloneAction'); 
  • branches/0.8/jaws/html/gadgets/Quotes/HTML.php

    r8783 r9233  
    4545    } 
    4646 
     47    /** 
     48     * Displays quotes by group 
     49     * 
     50     * @access public 
     51     * @return template content 
     52     */ 
    4753    function ViewGroupQuotes() 
    4854    { 
     
    5157        $layoutGadget = $GLOBALS['app']->LoadGadget('Quotes', 'LayoutHTML'); 
    5258        return $layoutGadget->Display($gid); 
     59    } 
     60 
     61    /** 
     62     * Displays quotes by group in standalone mode 
     63     * 
     64     * @access public 
     65     * @return template content 
     66     */ 
     67    function QuotesByGroup() 
     68    { 
     69        $xss  = $GLOBALS['app']->loadClass('XSS', 'Jaws_XSS'); 
     70        header($xss->filter($_SERVER['SERVER_PROTOCOL'])." 200 OK"); 
     71        return $this->ViewGroupQuotes(); 
    5372    } 
    5473 
     
    85104        return $tpl->Get(); 
    86105    } 
     106 
    87107} 
  • branches/0.8/jaws/html/gadgets/Quotes/Map.php

    r8067 r9233  
    1212$GLOBALS['app']->Map->Connect('Quotes', 'ViewQuote', 'quote/{id}'); 
    1313$GLOBALS['app']->Map->Connect('Quotes', 'ViewGroupQuotes', 'quotes/{id}'); 
     14$GLOBALS['app']->Map->Connect('Quotes', 'QuotesByGroup', 'quotes/group/{id}');