public function import($type, $element = null, $autocreate = true, $dispatcher = null)
    {
        $result = false;
        $this->_load();

        foreach ($this->_plugins as $plugin) {
            if ($plugin->type === $type && (is_null($element) || $plugin->element === $element)) {
                $this->_import($plugin, $autocreate, $dispatcher);
                $result = true;
            }
        }

        return $result;
    }
public function import($type, $element = null, $autocreate = true, $dispatcher = null)
    {
        $result = false;
        $this->_load();

        foreach ($this->_plugins as $plugin) {
            if ($plugin->type === $type && (is_null($element) || $plugin->element === $element)) {
                $this->_import($plugin, $autocreate, $dispatcher);
                $result = true;
            }
        }

        return $result;
    }
public function import ( $ type , $ element = null , $ autocreate = true , $ dispatcher = null ) { $ result = false ; $ this -> _load ( ) ; foreach ( $ this -> _plugins as $ plugin ) { if ( $ plugin -> type === $ type && ( is_null ( $ element ) || $ plugin -> element === $ element ) ) { $ this -> _import ( $ plugin , $ autocreate , $ dispatcher ) ; $ result = true ; } } return $ result ; }
Loads all the plugin files for a particular type if no specific plugin is specified
otherwise only the specific pugin is loaded.

@access public
@param string 	$type 	The plugin type, relates to the sub-directory in the plugins directory
@param string 	$plugin	The plugin element
@return boolean True if success
Loads all the plugin files for a particular type if no specific plugin is specified otherwise only the specific pugin is loaded .