Extending EntityFieldQuery. Which variables should I define?
class nodematcher extends EntityFieldQuery {
  public function __construct() {
    $this-&gt;query = New entityFieldQuery;


This doesn't make any sense. You are either subclassing EntityFieldQuery or you are using a delegate pattern. Doing both makes little sense. What you wanted here is perhaps parent::__construct and wherever you used $this-&gt;query just use $this.