コード例 #1
0
    /**
	 * Creates all Check related URLs for the site
	 * 
	 * @param  string $type  The type of URL to make: 'list', 'add', 'edit', 'delete'
	 * @param  Meetup $obj   The Check object for the edit and delete URL types
	 * @return string  The URL requested
	 */
	static public function makeURL($type, $obj=NULL)
	{    
		switch ($type)
		{
			case 'list':
				return 'result.php?action=list&check_id=' . $obj->prepareCheckId();
                return '';
			case 'edit':
				return 'result.php?action=edit&check_id=' . $obj->prepareCheckId();
			case 'delete':
				return 'result.php?action=delete&check_id=' . $obj->prepareCheckId();
			case 'ackAll':
				return 'result.php?action=ackAll&check_id=' . $obj->prepareCheckId();
		}	
	}