Changes between Initial Version and Version 1 of Ticket #12955, comment 32
- Timestamp:
- 02/13/2016 02:15:41 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12955, comment 32
initial v1 6 6 > Basically by using `make_instance()` the goal is to be able to filter the returned object in `get_post()` 7 7 8 Completely agreed that it would be ideal to have the `__construct()` call call `make_instance()`, but unfortunately PHP does not allow changing the class of an objectinside a constructor. A major goal here was to stop `get_post()` from changing the object such that the following is always true:8 Completely agreed that it would be ideal to have the `__construct()` call `make_instance()`, but unfortunately PHP does not allow specifying the object return value inside a constructor. A major goal here was to stop `get_post()` from changing the object such that the following is always true: 9 9 10 10 {{{#!php