[TxMt] folding for php case

David Clark david.clark at umb.edu
Fri Oct 6 20:12:24 UTC 2006


Hi,

I have been surprised that for the following:
switch ( $x )
{
	case 'Add':
		$db->query(build_insert_sql('event', $eventfieldlist));
		$event_id = $db->insert_id;
		$db->query('INSERT INTO event_aud (`id`, `aud_id`) VALUES
("'.$event_id.'","'.$_POST['aud_id'].'")');
	break;

	case 'Edit':
		$db->query(build_update_sql('event', $eventfieldlist, $_POST['id']));
	    	$template['top_msg'] .= '<p>hi there </p>';
	break;
			
	default:
		$template['top_msg'] .= '<p>hi there </p>';
	break;
}

one can only fold the entire switch, and not each case.

would this be too hard to implement?

-- 
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark at umb.edu
(617)  287-4318



More information about the textmate mailing list