disable_cells: new param $disable=true to also (re-)enable a cell

This commit is contained in:
Ralf Becker 2005-04-24 17:13:44 +00:00
parent 40526f9b2b
commit 756062a477

View File

@ -373,11 +373,12 @@
* disables all cells with name == $name * disables all cells with name == $name
* *
* @param sting $name cell-name * @param sting $name cell-name
* @param boolean $disabled=true disable or enable a cell, default true=disable
* @return mixed number of changed cells or False, if none changed * @return mixed number of changed cells or False, if none changed
*/ */
function disable_cells($name) function disable_cells($name,$disabled=True)
{ {
return $this->set_cell_attribute($name,'disabled',True); return $this->set_cell_attribute($name,'disabled',$disabled);
} }
/** /**