[pLog-svn] r4951 - plog/branches/lifetype-1.2/class/data/validator/rules
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sat Mar 3 12:37:51 EST 2007
Author: oscar
Date: 2007-03-03 12:37:50 -0500 (Sat, 03 Mar 2007)
New Revision: 4951
Modified:
plog/branches/lifetype-1.2/class/data/validator/rules/urlformatrule.class.php
Log:
Added a few missing constants.
Modified: plog/branches/lifetype-1.2/class/data/validator/rules/urlformatrule.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/validator/rules/urlformatrule.class.php 2007-03-03 13:57:15 UTC (rev 4950)
+++ plog/branches/lifetype-1.2/class/data/validator/rules/urlformatrule.class.php 2007-03-03 17:37:50 UTC (rev 4951)
@@ -4,6 +4,30 @@
lt_include(PLOG_CLASS_PATH."class/net/dns.class.php");
lt_include(PLOG_CLASS_PATH."class/net/http/httpvars.class.php");
+define( "EW_OK", 1 );
+
+define( "EW_ERR_URL_INVALID_PROTOCOL", 10 );
+define( "EW_ERR_URL_INVALID_USER", 20 );
+define( "EW_ERR_URL_INVALID_PASSWORD", 30 );
+define( "EW_ERR_URL_INVALID_SERVER", 40 );
+define( "EW_ERR_URL_INVALID_TLD", 50 );
+define( "EW_ERR_URL_INVALID_PORT", 60 );
+define( "EW_ERR_URL_INVALID_RESOURCE", 70 );
+define( "EW_ERR_URL_INVALID_QUERYSTRING", 80 );
+define( "EW_ERR_URL_INVALID_ANCHOR", 100 );
+
+define( "EW_ERR_URL_MISSING_PROTOCOL", 110 );
+define( "EW_ERR_URL_MISSING_USER", 120 );
+define( "EW_ERR_URL_MISSING_PASSWORD", 130 );
+define( "EW_ERR_URL_MISSING_SERVER", 140 );
+define( "EW_ERR_URL_MISSING_TLD", 150 );
+define( "EW_ERR_URL_MISSING_PORT", 160 );
+define( "EW_ERR_URL_MISSING_RESOURCE", 170 );
+define( "EW_ERR_URL_MISSING_QUERYSTRING", 180 );
+define( "EW_ERR_URL_MISSING_ANCHOR", 190 );
+
+
+
/**
* \ingroup Validator_Rules
*
More information about the pLog-svn
mailing list