PHP-Mode
Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4. Menus

There are 3 menus: PHP, Index and Sources. All theses menus can be accessed from the menubar or from the right click. This chapter describes each menus.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.1 PHP

This is the main menu of PHP Mode. It allows an easy access to the main features of the PHP Mode: Templates (see Templates), Indentation (see Indentation) and Options (see Customization).

This menu contains also 3 functions that are discussed in the next part.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.1.1 Functions

`php-show-messages'

Menu: PHP -> Show Messages
Keybinding: C-c M-m
Description: This function opens the *Messages* buffer to display previous error messages.

`php-doc-mode'

Menu: PHP -> PHP Mode Documentation
Keybinding: C-c C-h
Description: This function opens the *Help* buffer and prints in it the PHP Mode documentation.

`php-version'

Menu: PHP -> Version
Keybinding: C-c C-v
Description: This function displays in the minibuffer the current PHP Mode version with the timestamp.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 Index

The Index menu allows you to navigate into the current buffer to find functions and classes. This menu is built during the buffer openning and you need to refresh it if you add or remove functions or classes. There is one Index menu per buffer.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2.1 Customization

`php-index-menu'

Type: boolean
Default value: `t'
Description: If `t'; the Index menu is enabled. It shows the list of class and functions of the opened file. The Index menu scans the file when it is opened.

`php-index-menu-auto-rescan'

Type: boolean
Default value: `t'
Description: If `t'; the Index menu is updated when a function or a class is added or removed.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3 Sources

The Sources menu shows the PHP files in the current directory. If you add or delete a file in the current directory, you need to refresh the menu.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3.1 Customization

`php-source-file-menu'

Type: boolean
Default value: `t'
Description: If `t'; the Sources menu is enabled. This menu contains the list of PHP file located in the current directory. The Sources menu scans the directory when a file is opened.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3.2 Functions

`php-add-source-files-menu'

Menu: Sources -> *Rescan*
Keybinding: C-c C-s C-u
Description: This function is used to refresh the Sources menu.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]