[pLog-svn] r1943 - plog/branches/plog-1.0.1/class/config
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Thu May 5 18:09:12 GMT 2005
Author: oscar
Date: 2005-05-05 18:09:12 +0000 (Thu, 05 May 2005)
New Revision: 1943
Modified:
plog/branches/plog-1.0.1/class/config/properties.class.php
Log:
core change: added Properties::keyExists() to check whether the key has already been set in the table
Modified: plog/branches/plog-1.0.1/class/config/properties.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/config/properties.class.php 2005-05-05 17:27:43 UTC (rev 1942)
+++ plog/branches/plog-1.0.1/class/config/properties.class.php 2005-05-05 18:09:12 UTC (rev 1943)
@@ -98,5 +98,16 @@
{
return array_values( $this->_props );
}
+
+ /**
+ * returns whether a given key exists in the table
+ *
+ * @param key The key name
+ * @return True if the key exists, false otherwise
+ */
+ function keyExists( $key )
+ {
+ return( array_key_exists( $key, $this->_props ));
+ }
}
?>
More information about the pLog-svn
mailing list