PHP Classes

GTK Popup Menu App: Create GTK popup menus bound to class functions

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 625 All time: 5,054 This week: 455Up
Version License PHP version Categories
xzypopapp 0.1GNU General Publi...5.0PHP 5, GUI


This class can be used to create GTK popup menus bound to class functions.

It can retrieve the list of functions of the class and create a popup menu with entries that are handled by the class functions with names which do not start by _ nor are named run.

The menu entry titles are taken from the respective class names after replacing _ characters by spaces.

Applications should extend this class to define their own popup menus from their class function names.

Innovation Award
PHP Programming Innovation award nominee
February 2011
Number 4

Prize: One copy of RadPHP XE
Implementing GUI application menus requires defining the menu labels and the callback functions that will handle the menu actions.

This class implements an approach that makes it simpler. It can take a class with menu action callback functions and uses the name of the respective function names as labels.

Manuel Lemos
Picture of Luis Martinez Ulloa
  Performance   Level  
Name: Luis Martinez Ulloa is available for providing paid consulting. Contact Luis Martinez Ulloa .
Classes: 12 packages by
Country: Peru Peru
Age: 52
All time rank: 3991 in Peru Peru
Week rank: 91 Up2 in Peru Peru Down
Innovation award
Innovation award
Nominee: 5x

  • scr3.png
  • scr4.png
  • scr6.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file popup.php Example example script - don't forget to mark as executable (x flag in unices)
Plain text file xzydialogs.php Class auxiliary class
Plain text file xzypopapp.php Class base class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,054
This week:455Up