$path) { $pluginLoader->addPrefixPath($prefix, $path); } } $adapterClassName = $pluginLoader->load($adapter); return new Qs_Paginator(new $adapterClassName($data)); } public function setCurrentItems($currentItems) { $this->_currentItems = $currentItems; } /** * Returns the adapter loader. If it doesn't exist it's created. * * @return Zend_Loader_PluginLoader */ public static function getAdapterLoader() { if (self::$_adapterLoader === null) { $prefixToPaths = [ 'Zend_Paginator_Adapter' => 'Zend/Paginator/Adapter', 'Qs_Paginator_Adapter' => 'Qs/Paginator/Adapter', ]; self::$_adapterLoader = new Zend_Loader_PluginLoader($prefixToPaths); } return self::$_adapterLoader; } }