cvs: pear /HTML_Javascript Javascript.php

From: Date: Sat, 01 Jun 2002 13:24:50 +0000
Subject: cvs: pear /HTML_Javascript Javascript.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4335@lists.php.net to get a copy of this message
tal Sat Jun 1 09:24:50 2002 EDT Modified files: /pear/HTML_Javascript Javascript.php Log: * phpdoc Index: pear/HTML_Javascript/Javascript.php diff -u pear/HTML_Javascript/Javascript.php:1.3 pear/HTML_Javascript/Javascript.php:1.4 --- pear/HTML_Javascript/Javascript.php:1.3 Sat Jun 1 09:18:15 2002 +++ pear/HTML_Javascript/Javascript.php Sat Jun 1 09:24:50 2002 @@ -18,8 +18,26 @@ //Error codes + +/** +* No script started error +* +* @const HTML_JAVASCRIPT_ERROR_NOSTART +*/ define('HTML_JAVASCRIPT_ERROR_NOSTART', 500, true); + +/** +* Last script was not ended error +* +* @const HTML_JAVASCRIPT_ERROR_NOEND +*/ define('HTML_JAVASCRIPT_ERROR_NOEND', 501, true); + +/** +* Invalid variable error +* +* @const HTML_JAVASCRIPT_ERROR_INVVAR +*/ define('HTML_JAVASCRIPT_ERROR_INVVAR', 502, true); require_once('PEAR.php'); @@ -115,7 +133,7 @@ function convertString($str, $varname, $global = false) { if (!$this->_started) { - return $this->raiseError(HTML_JAVASCRIPT_ERROR_); + return $this->raiseError(HTML_JAVASCRIPT_ERROR_NOSTART); } $var = ''; @@ -141,7 +159,7 @@ function convertVar($var, $varname, $global = false) { if (!$this->_started) { - return $this->raiseError(HTML_JAVASCRIPT_ERROR_); + return $this->raiseError(HTML_JAVASCRIPT_ERROR_NOSTART); } if (!(is_string($var) OR is_array($var) OR is_bool($var))) { @@ -202,7 +220,7 @@ function convertBoolean($bool, $varname, $global = false) { if (!$this->_started) { - return $this->raiseError(HTML_JAVASCRIPT_ERROR_); + return $this->raiseError(HTML_JAVASCRIPT_ERROR_NOSTART); } $var = ''; @@ -248,7 +266,7 @@ function convertArray($arr, $varname, $global = false) { if (!$this->_started) { - return $this->raiseError(HTML_JAVASCRIPT_ERROR_); + return $this->raiseError(HTML_JAVASCRIPT_ERROR_NOSTART); } $var = '';

« previous php.pear.cvs (#4335) next »