Source for file toolbar.newsfeeds.html.php

Documentation is available at toolbar.newsfeeds.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Newsfeeds
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. class TOOLBAR_newsfeeds  {
  14.     function _DEFAULT({
  15.         mosMenuBar::startTable();
  16.         mosMenuBar::publishList();
  17.         mosMenuBar::spacer();
  18.         mosMenuBar::unpublishList();
  19.         mosMenuBar::spacer();
  20.         mosMenuBar::addNewX();
  21.         mosMenuBar::spacer();
  22.         mosMenuBar::editListX();
  23.         mosMenuBar::spacer();
  24.         mosMenuBar::deleteList();
  25.         mosMenuBar::spacer();
  26.         mosMenuBar::help'manager' );
  27.         mosMenuBar::endTable();
  28.     }
  29.  
  30.     function _NEW({
  31.         mosMenuBar::startTable();
  32.         mosMenuBar::save();
  33.         mosMenuBar::spacer();
  34.         mosMenuBar::cancel();
  35.         mosMenuBar::spacer();
  36.         mosMenuBar::help'new' );
  37.         mosMenuBar::endTable();
  38.     }
  39.  
  40.     function _EDIT({
  41.         global $id;
  42.         
  43.         mosMenuBar::startTable();
  44.         mosMenuBar::save();
  45.         mosMenuBar::spacer();
  46.         if $id {
  47.             // for existing content items the button is renamed `close`
  48.             mosMenuBar::cancel'cancel'T_('Close') );
  49.         else {
  50.             mosMenuBar::cancel();
  51.         }
  52.         mosMenuBar::spacer();
  53.         mosMenuBar::help'edit' );
  54.         mosMenuBar::endTable();
  55.     }
  56. }
  57. ?>

Documentation generated on Mon, 05 May 2008 16:23:43 +0400 by phpDocumentor 1.4.0