/** * This parses all the JSON configuration files in the addon directory and * returns the addons. * * @param SolrSearch_Addon_Config $config The configuration parser. If * null, this is created. * * @return array of SolrSearch_Addon_Addon * @author Eric Rochester <*****@*****.**> **/ public function parseAll($config = null) { if (is_null($config)) { $config = new SolrSearch_Addon_Config($this->db); } if (is_null($this->addons)) { $this->addons = array(); } $this->addons = array_merge($this->addons, $config->parseDir($this->addonDir)); return $this->addons; }