PEAR_Frontend_Gtk2
[ class tree: PEAR_Frontend_Gtk2 ] [ index: PEAR_Frontend_Gtk2 ] [ all elements ]

Source for file About.php

Documentation is available at About.php

  1. <?php
  2. /**
  3. *   About dialog for the PEAR Gtk2 frontend
  4. *
  5. *   @author Christian Weiske <cweiske@php.net>
  6. */
  7. class PEAR_Frontend_Gtk2_About extends GtkAboutDialog
  8. {
  9.     /**
  10.     *   Creates the About dialog and fills it with
  11.     *   the right values (name, version, programmer, ...)
  12.     */
  13.     public function __construct()
  14.     {
  15.         parent::__construct();
  16.         $this->set_title('About PEAR package installer');
  17.         $this->set_version('0.1.2');
  18.         $this->set_name('PEAR package installer');
  19.  
  20.         $this->set_license("This program is licensed under the LGPL v2.1");
  21.  
  22.         $this->set_comments('Programmed by Christian Weiske <cweiske@php.net>'
  23.             . "\r\n" 'Sponsored by Ralf Schwoebel, www.tradebit.com');
  24.  
  25.         $this->set_website('http://gnope.org');
  26.  
  27. //        $this->set_authors(array('Christian Weiske <cweiske@cweiske.de>', 'Ralf Schwöbel'));
  28.     }//public function __construct()
  29.  
  30.  
  31.  
  32.     /**
  33.     *   Static function that just creates an instance of the
  34.     *   About dialog, and run()s it afterwards.
  35.     */
  36.     public static function showMe()
  37.     {
  38.         $dlg = new PEAR_Frontend_Gtk2_About();
  39.         $dlg->run();
  40.     }//public static function showMe()
  41.  
  42. }//class PEAR_Frontend_Gtk2_About extends GtkAboutDialog
  43. ?>

Documentation generated on Mon, 11 Mar 2019 14:39:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.