User Guide > Tasks > Overriding / Implementing Methods

Overriding / Implementing Methods

The override / implement method feature provides a mechanism for overriding/implementing methods defined in a class's parent or interface.

 

 

Instructions on how to complete a procedure

To override / implement methods:

  1. Place your cursor within the class for which you would like to override/implement methods.

  1. Right-click within the class's source code and select Source | Override/Implement Methods -Or- Right-click the required class in PHP Explorer view and select Source | Override/Implement Methods.
    The ' Override/Implement Methods' dialog will open, displaying all methods that can be overridden.

Override / Implement Method dialog

  1. Select the elements which you would like to override or implement by marking the checkbox next to the element.

  2. Select the insertion point from the drop-down list.

  1. Select whether to generate method comments or TODOs (tasks) by marking the relevant checkboxes.

  2. Click OK.

The relevant code to implement / override the selected methods will be created in your script.

 

 

 

Related Links:
Generating Getters and Setters

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.