Source for file toolbar.contact.html.php

Documentation is available at toolbar.contact.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Contact
  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_contact {
  14.     /**
  15.     * Draws the menu for a New Contact
  16.     */
  17.     function _EDIT({
  18.         global $id;
  19.         
  20.         mosMenuBar::startTable();
  21.         mosMenuBar::save();
  22.         mosMenuBar::spacer();
  23.         if $id {
  24.             // for existing content items the button is renamed `close`
  25.             mosMenuBar::cancel'cancel'T_('Close') );
  26.         else {
  27.             mosMenuBar::cancel();
  28.         }
  29.         mosMenuBar::spacer();
  30.         if ($GLOBALS['task'== 'new'{
  31.             mosMenuBar::help'new' );
  32.         else {
  33.             mosMenuBar::help'edit' );
  34.         }
  35.         mosMenuBar::endTable();
  36.     }
  37.  
  38.     function _DEFAULT({
  39.         mosMenuBar::startTable();
  40.         mosMenuBar::publish();
  41.         mosMenuBar::spacer();
  42.         mosMenuBar::unpublish();
  43.         mosMenuBar::spacer();
  44.         mosMenuBar::addNewX();
  45.         mosMenuBar::spacer();
  46.         mosMenuBar::editListX();
  47.         mosMenuBar::spacer();
  48.         mosMenuBar::deleteList();
  49.         mosMenuBar::spacer();
  50.         mosMenuBar::help'manager' );
  51.         mosMenuBar::endTable();
  52.     }
  53. }
  54. ?>

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