mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
add function disable_cells
This commit is contained in:
parent
13685a647e
commit
80bced0f01
@ -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;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user