Closed (won't fix)
Project:
Apache Solr Search
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2009 at 14:24 UTC
Updated:
18 Mar 2011 at 21:35 UTC
function apachesolr_drupal_query($keys = '', $filters = '', $solrsort = '', $base_path = '') {
list($module, $class) = variable_get('apachesolr_query_class', array('apachesolr', 'Solr_Base_Query'));
include_once drupal_get_path('module', $module) .'/'. $class .'.php';
This makes it very hard to extend a class. Thanks again PHP for having absolutely no class dependency support (/me briefly and only mildly missing Java's package support).
Comments
Comment #1
jpmckinney commentedRestricting, but not a bug, as we can always manually include the required parents/interfaces. I suppose we can do something like Views, where we have an array with the class name and any parents/interfaces it requires.
Comment #2
Scott Reynolds commentedWhat about autoload module? Or setting up autoload (as you already required php5)?
In D7, registry helps is out right?
Comment #3
jpmckinney commentedI agree: we should look into what D7 is doing, to see if that is an option for D6.
Comment #4
pwolanin commented