Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
0
votes
0
answers
26
views
Don't filters violate the a class' local variables visibility rules?
Pressume I have a class:
class TestClass
{
protected $handle;
}
and in that class, I decide that my $handle will be set by a filter, in the constructor:
class TestClass
{
private $handle
…
1
vote
0
answers
33
views
What is the downside of using a filter as a "poor man's" dependency injection?
First of all, I don't know whether or not "dependency injection" is the right term to use, what would be "dependencies" in my case are really objects that I use within other "parent".
I have a big im …