const DEFAULT_ENGINE_LIST = array(
'google' => new GoogleSearch(),
'yahoo' => new YahooSearch(),
'flickr' => new FlickrSearch(),
'blip' => new BlipSearch(),
'jamendo' => new JamendoSearch(),
'spin' => new SpinSearch()
throws this error:
so it looks like maybe i can't instantiate objects in a constant?
Parse error: syntax error, unexpected T_NEW [ . . . ]
i really just want to set a default value for this "var" $_engineList, which will hold an array of these engine objects. the idea is to have them all in one place so that more can be added later. by making as few edits as possible. perhaps i should re-think my approach?