add function disable_cells

This commit is contained in:
Ralf Becker 2002-05-11 15:16:23 +00:00
parent 13685a647e
commit 80bced0f01

View File

@ -195,4 +195,28 @@
return $data;
}
/*!
@function disable_cells($name)
@abstract disables all cells with name == $name
*/
function disable_cells($name)
{
reset($this->data);
$n = 0;
while(list($row,$cols) = each($this->data))
{
while(list($col,$cell) = each($cols))
{
if ($cell['name'] == $name)
{
$this->data[$row][$col]['disabled'] = True;
++$n;
}
}
}
reset($this->data);
return $n;
}
};