]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
add uploadTo parameter to file/image field
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 19 Apr 2013 19:32:14 +0000 (22:32 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 19 Apr 2013 19:32:14 +0000 (22:32 +0300)
ipf/orm/import/schema.php
ipf/orm/utils.php
ipf/orm/validator/uploadto.php [new file with mode: 0644]

index 76a9ab3eb91998bcb8f62497bb4280a558d74a4f..a4c67c27367f6cd1950d6f4ccf356fc7a3bf17b7 100644 (file)
@@ -543,3 +543,4 @@ class IPF_ORM_Import_Schema
         }
     }
 }
+
index 72c2a1a9af546d2a7a613df125526618d7923aaa..0fa8f93c7bf4f86fc2bd72318161aed99d1eb221 100644 (file)
@@ -57,6 +57,7 @@ class IPF_ORM_Utils {
             'file',
             'image',
             'html',
+            'uploadTo',
         );
     }
 
diff --git a/ipf/orm/validator/uploadto.php b/ipf/orm/validator/uploadto.php
new file mode 100644 (file)
index 0000000..2a99a68
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+class IPF_ORM_Validator_UploadTo
+{
+    public function validate($value)
+    {
+        return true;
+    }
+}
+