original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Finds an element filename returns false on failure .