[pLog-svn] r6110 - plog/trunk/class/dao/customfields

mark at devel.lifetype.net mark at devel.lifetype.net
Fri Dec 7 03:57:50 EST 2007


Author: mark
Date: 2007-12-07 03:57:50 -0500 (Fri, 07 Dec 2007)
New Revision: 6110

Added:
   plog/trunk/class/dao/customfields/customfieldtype.properties.php
Modified:
   plog/trunk/class/dao/customfields/customfields.class.php
   plog/trunk/class/dao/customfields/customfieldvaluefactory.class.php
Log:
Fixed another include error. We should separate the custom filed type from customfields.class.php, and include them separately and manually. Becasue the definition will use in more then one place.

My original idea is to change them to class constants, but it will cause a lot of plugins broken if they use custom field.  so ... just give this idea up.

Modified: plog/trunk/class/dao/customfields/customfields.class.php
===================================================================
--- plog/trunk/class/dao/customfields/customfields.class.php	2007-12-07 06:44:16 UTC (rev 6109)
+++ plog/trunk/class/dao/customfields/customfields.class.php	2007-12-07 08:57:50 UTC (rev 6110)
@@ -1,23 +1,8 @@
 <?php
 
+    lt_include( PLOG_CLASS_PATH."class/dao/customfields/customfieldtype.properties.php" );
 	
-	
-	
-		
-	
 	/**
-	 * different custom field types available
-	 *
-	 * \ingroup DAO
-	 */
-	define( "CUSTOM_FIELD_TEXTBOX", 1 );
-	define( "CUSTOM_FIELD_TEXTAREA", 2 );
-	define( "CUSTOM_FIELD_CHECKBOX", 3 );
-	define( "CUSTOM_FIELD_DATE", 4 );
-	define( "CUSTOM_FIELD_LIST", 5 );
-	define( "CUSTOM_FIELD_MULTILIST", 6 );
-	
-	/**
      * Model for the custom fields
      */
 	class CustomFields extends Model 

Added: plog/trunk/class/dao/customfields/customfieldtype.properties.php
===================================================================
--- plog/trunk/class/dao/customfields/customfieldtype.properties.php	                        (rev 0)
+++ plog/trunk/class/dao/customfields/customfieldtype.properties.php	2007-12-07 08:57:50 UTC (rev 6110)
@@ -0,0 +1,13 @@
+<?php
+	/**
+	 * different custom field types available
+	 *
+	 * \ingroup DAO
+	 */
+	define( "CUSTOM_FIELD_TEXTBOX", 1 );
+	define( "CUSTOM_FIELD_TEXTAREA", 2 );
+	define( "CUSTOM_FIELD_CHECKBOX", 3 );
+	define( "CUSTOM_FIELD_DATE", 4 );
+	define( "CUSTOM_FIELD_LIST", 5 );
+	define( "CUSTOM_FIELD_MULTILIST", 6 );
+?>
\ No newline at end of file

Modified: plog/trunk/class/dao/customfields/customfieldvaluefactory.class.php
===================================================================
--- plog/trunk/class/dao/customfields/customfieldvaluefactory.class.php	2007-12-07 06:44:16 UTC (rev 6109)
+++ plog/trunk/class/dao/customfields/customfieldvaluefactory.class.php	2007-12-07 08:57:50 UTC (rev 6110)
@@ -1,11 +1,7 @@
 <?php
 
-	
-	
-	
+	lt_include( PLOG_CLASS_PATH."class/dao/customfields/customfieldtype.properties.php" );
 		
-		
-		
 	/**
 	 * Generates the right CustomFieldValue (or subclass of it)
 	 *



More information about the pLog-svn mailing list