phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.4,1.5


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.4,1.5
Date: Sat, 11 May 2002 11:16:25 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv8796

Modified Files:
        class.boetemplate.inc.php 
Log Message:
add function disable_cells

Index: class.boetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.boetemplate.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** class.boetemplate.inc.php   18 Feb 2002 13:50:24 -0000      1.4
--- class.boetemplate.inc.php   11 May 2002 15:16:23 -0000      1.5
***************
*** 196,198 ****
--- 196,222 ----
                        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;
+               }
        };




reply via email to

[Prev in Thread] Current Thread [Next in Thread]