Posts Tagged: getter

Auto Getters and Setters in Ext JS 4

Posted by & filed under JavaScript Libraries.

Ext JS 4 Getter and Setter

Having read about the concept of Mutator and Accessor methods, today we will relate the concept to Ext JS 4. In the earlier versions of Ext JS, there was no in-built support for getter and setter methods. One had to write the getter and setter functions for common tasks like getting and setting a Window Continue reading…

Mutator and Accessor Methods in PHP

Posted by & filed under PHP.

Mutator and Accessor Methods in PHP

In Object Oriented Programming, a mutator method is also called a setter and an accessor method is called getter. The common use of a mutator method is to initialise the value of member variables of a class. Complementing the mutator method, the accessor method is used to get the value of the private data members.
Using Continue reading…