Update of /cvsroot/phpwebapp/web_app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9661
Modified Files:
class.WebApp.php
Log Message:
Index: class.WebApp.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** class.WebApp.php 4 Nov 2005 06:54:13 -0000 1.29
--- class.WebApp.php 4 Jan 2006 08:32:38 -0000 1.30
***************
*** 336,339 ****
--- 336,354 ----
/**
+ * Get all the state variables of a webobject
+ * and return them as an associative array.
+ * The optional parameter $type accepts the values "DB"
+ * and "JS", and depending on this parameter the function
+ * returns DB vars, JS vars or all of them (if undefined).
+ * @see getSVar(), setSVar()
+ */
+ function getSVars($obj_id, $type =UNDEFINED)
+ {
+ global $session;
+ $arr_vars = $session->getObjVars($obj_id, $type);
+ return $arr_vars;
+ }
+
+ /**
* Returns the web object with the given id,
* or UNDEFINED.
***************
*** 674,683 ****
* in a javascript statement like this:
* name = window.open(url, name, features);
! * and $html_content is an html code that is displayed in the
* window, like this:
* name.document.write(content);
*/
function popup_window($name, $url, $html_content =UNDEFINED,
! $features =UNDEFINED)
{
global $webPage;
--- 689,699 ----
* in a javascript statement like this:
* name = window.open(url, name, features);
! * $html_content is an html code that is displayed in the
* window, like this:
* name.document.write(content);
+ * $timeout is a timeout for closing the window (in milisecs)
*/
function popup_window($name, $url, $html_content =UNDEFINED,
! $features =UNDEFINED, $timeout =UNDEFINED)
{
global $webPage;
***************
*** 685,688 ****
--- 701,705 ----
$webPage->popup_windows[$name]['html_content'] = $html_content;
$webPage->popup_windows[$name]['features'] = $features;
+ $webPage->popup_windows[$name]['timeout'] = $timeout;
}
|