I am implementing a negation filter field in Symfony 1.4. with 1 text input and 1 checkbox for negation.
I can access the input value as below
public function addXXXColumnQuery($query, $field, $value)
{
$v = $value['text'];
$n = 'negation_checkbox_true_or_false'; // don't know how?
if ($n === true)
{
$query->addWhere($query->getRootAlias().'.name = ?', $v);
}
else if ($n === false)
{
$query->addWhere($query->getRootAlias().'.name <> ?', $v);
}
}
but I can't figure out how to access the checkbox value.
sfWidgetFormInputFileEditable has a 'with_delete' option that prints a checkbox. Anyone knows where is the code that checks for that value and delete the file?
If I can find that, maybe I can figure that out.