[pLog-svn] r6857 - plog/branches/lifetype-1.2/class/config

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Apr 11 15:12:55 EDT 2009


Author: jondaley
Date: 2009-04-11 15:12:55 -0400 (Sat, 11 Apr 2009)
New Revision: 6857

Modified:
   plog/branches/lifetype-1.2/class/config/configabstractstorage.class.php
   plog/branches/lifetype-1.2/class/config/configdbstorage.class.php
Log:
comments only

Modified: plog/branches/lifetype-1.2/class/config/configabstractstorage.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/config/configabstractstorage.class.php	2009-04-11 19:12:25 UTC (rev 6856)
+++ plog/branches/lifetype-1.2/class/config/configabstractstorage.class.php	2009-04-11 19:12:55 UTC (rev 6857)
@@ -28,14 +28,7 @@
 
         /**
          * Returns a constant determining the type of the value passed as parameter. The constants
-         * are:
-         * - TYPE_INTEGER = 1
-         * - TYPE_BOOLEAN = 2
-         * - TYPE_STRING = 3
-         * - TYPE_OBJECT = 4
-         * - TYPE_ARRAY = 5
-         * - TYPE_FLOAT = 6
-         * 
+         * are defined above.
          *
          * @param value The value from which we'd like to know its type
          * @return Returns one of the above.

Modified: plog/branches/lifetype-1.2/class/config/configdbstorage.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/config/configdbstorage.class.php	2009-04-11 19:12:25 UTC (rev 6856)
+++ plog/branches/lifetype-1.2/class/config/configdbstorage.class.php	2009-04-11 19:12:55 UTC (rev 6857)
@@ -10,21 +10,21 @@
 	 *
      * Storage backend that stores/retrieves the data from the plog_config
      * table.
-     * The structore of the table is as follows:
+     * The structure of the table is as follows:
 	 *
      * - id: setting identifier
      * - config_key: Name of the setting. Can't be empty
      * - config_value: Value assigned to the key
      * - value_type: This field can take several values and gives the class
-     * a hint regardign the type of the value:
-     * -- 1: integer. The config_value field represents is value.
-     * -- 2: boolean. It is saved as 1 == true and 0 == false.
-     * -- 3: string. It is saved as is.
-     * -- 4: object. The object is saved in a seralized way.
-     * -- 5: array. The arrays are also saved serialized. This is transparently
+     *               a hint regarding the type of the value:
+     * -- TYPE_INTEGER: It is saved as is.
+     * -- TYPE_BOOLEAN: It is saved as 1 == true and 0 == false.
+     * -- TYPE_STRING: It is saved as is.
+     * -- TYPE_OBJECT: The object is saved in a seralized way.
+     * -- TYPE_ARRAY: The arrays are also saved serialized. This is transparently
      * done inside the save() and saveValue() methods, and therefore the user
      * does not have to worry about doing it.
-     * -- 6: float. It is saved as is.
+     * -- TYPE_FLOAT: It is saved as is.
      * 
      * Type detection is provided via the built-in mechanisms that PHP offers.
      * </ul>
@@ -150,6 +150,7 @@
 		 */
         function setValue( $key, $value )
         {
+
         	$this->_data[$key] = $value;
 
             return true;
@@ -256,7 +257,7 @@
                  	throw( new Exception( "_updateValue: _getType produced an unexpected value of $type when checking value \"$value\""));
                     die();
              }
-			 
+
              $result = $this->_db->Execute( $query );
 
              if( $result )



More information about the pLog-svn mailing list