Location: PHPKode > projects > OpenWolf Guidelines Validator > openWolf 0.9.9/wai/parse.class.php
<?php

/*************************************************

openWolf - an HTML accessibility guidelines validator
Author: Geoff Munn (hide@address.com)
Version: 0.9.9

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

You may contact the author of openWolf by e-mail at: hide@address.com

The latest version of openWolf can be obtained from:
http://openwolf.sourceforge.net/

*************************************************/

class parse extends Parse_core  {
	function parse($url){
		//validate the webpage address:
		//NOTE: what to do with sites like http://example.com/test ?
		//This will remove queries (optional), and attach the default page if it is not already present
		
		$baseUrl=get_base_url($url, true);
		if(substr($baseUrl,-1)!='/'){
			$baseUrl.='/';
		}
		
		$this->setBaseUrl($baseUrl);
		$this->setCurrentPage($url);
		$this->setDomain(get_domain($url));
		//END OF webpage address validation
	}
}

?>
Return current item: OpenWolf Guidelines Validator