public function getPlugin($class)
		{
		static $index = null;
		if (is_null($index))
			{
			$index = array();
			for ($i = 0, $l = count($this->plugins); $i < $l; $i++)
				{
				$index[get_class($this->plugins[$i])] = $i;
				}
			}
		return isset($index[$class]) ? $this->plugins[$index[$class]] : false;
		}
public function getPlugin($class)
		{
		static $index = null;
		if (is_null($index))
			{
			$index = array();
			for ($i = 0, $l = count($this->plugins); $i < $l; $i++)
				{
				$index[get_class($this->plugins[$i])] = $i;
				}
			}
		return isset($index[$class]) ? $this->plugins[$index[$class]] : false;
		}
public function getPlugin ( $ class ) { static $ index = null ; if ( is_null ( $ index ) ) { $ index = array ( ) ; for ( $ i = 0 , $ l = count ( $ this -> plugins ) ; $ i < $ l ; $ i ++ ) { $ index [ get_class ( $ this -> plugins [ $ i ] ) ] = $ i ; } } return isset ( $ index [ $ class ] ) ? $ this -> plugins [ $ index [ $ class ] ] : false ; }
Returns a plugin by class name.

@param string $name Class name of the plugin
@return aCssParserPlugin
Returns a plugin by class name .