public function locate($filename)
    {
        $basename = preg_replace('~\.[^.]+$~', '', basename($filename));

        if (isset($this->map[$basename])) {
            return $this->root . '/' . $this->map[$basename];
        }

        return null;
    }
public function locate($filename)
    {
        $basename = preg_replace('~\.[^.]+$~', '', basename($filename));

        if (isset($this->map[$basename])) {
            return $this->root . '/' . $this->map[$basename];
        }

        return null;
    }
public function locate ( $ filename ) { $ basename = preg_replace ( '~\.[^.]+$~' , '' , basename ( $ filename ) ) ; if ( isset ( $ this -> map [ $ basename ] ) ) { return $ this -> root . '/' . $ this -> map [ $ basename ] ; } return null ; }
Locate a definition file

@param   string $filename The name of the XML file

@return  string|null  The path, if found, null else
Locate a definition file