protected function _getElementFileName($name, $pluginCheck = true)
    {
        list($plugin, $name) = $this->pluginSplit($name, $pluginCheck);

        $paths = $this->_paths($plugin);
        $elementPaths = $this->_getSubPaths(static::NAME_ELEMENT);

        foreach ($paths as $path) {
            foreach ($elementPaths as $elementPath) {
                if (file_exists($path . $elementPath . DIRECTORY_SEPARATOR . $name . $this->_ext)) {
                    return $path . $elementPath . DIRECTORY_SEPARATOR . $name . $this->_ext;
                }
            }
        }

        return false;
    }
protected function _getElementFileName($name, $pluginCheck = true)
    {
        list($plugin, $name) = $this->pluginSplit($name, $pluginCheck);

        $paths = $this->_paths($plugin);
        $elementPaths = $this->_getSubPaths(static::NAME_ELEMENT);

        foreach ($paths as $path) {
            foreach ($elementPaths as $elementPath) {
                if (file_exists($path . $elementPath . DIRECTORY_SEPARATOR . $name . $this->_ext)) {
                    return $path . $elementPath . DIRECTORY_SEPARATOR . $name . $this->_ext;
                }
            }
        }

        return false;
    }
protected function _getElementFileName ( $ name , $ pluginCheck = true ) { list ( $ plugin , $ name ) = $ this -> pluginSplit ( $ name , $ pluginCheck ) ; $ paths = $ this -> _paths ( $ plugin ) ; $ elementPaths = $ this -> _getSubPaths ( static :: NAME_ELEMENT ) ; foreach ( $ paths as $ path ) { foreach ( $ elementPaths as $ elementPath ) { if ( file_exists ( $ path . $ elementPath . DIRECTORY_SEPARATOR . $ name . $ this -> _ext ) ) { return $ path . $ elementPath . DIRECTORY_SEPARATOR . $ name . $ this -> _ext ; } } } return false ; }
Finds an element filename, returns false on failure.

@param string $name The name of the element to find.
@param bool $pluginCheck - if false will ignore the request's plugin if parsed plugin is not loaded
@return string|false Either a string to the element filename or false when one can't be found.
Finds an element filename returns false on failure .