$person = new DataObjects_Person;
$person->get(12);
// always prints
$person->debug('just got the person, about to set stuff', 'my application',0);
$person->setFrom($_POST['input']);
// only prints if debuglevel is set
$person->debug('just set the variables, about to update', 'my application',1);
$person->update(); |