Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

creating the file element and deprecating the upload type

  • Loading branch information...
commit 25e9d3b5c54ce0c1103d3ec9ddc7f18b4c7fb586 1 parent bad74f0
@Zeelot authored
View
10 classes/yform/field/file.php
@@ -0,0 +1,10 @@
+<?php defined('SYSPATH') OR die('No direct access allowed.');
+
+/**
+ * @package YurikoCMS
+ * @author Lorenzo Pisani - Zeelot
+ * @copyright (c) 2008-2010 Lorenzo Pisani
+ * @license http://yurikocms.com/license
+ */
+
+class YForm_Field_File extends Yuriko_YForm_Field_File {}
View
19 classes/yuriko/yform/field/file.php
@@ -0,0 +1,19 @@
+<?php defined('SYSPATH') OR die('No direct access allowed.');
+/**
+ * @package YurikoCMS
+ * @author Lorenzo Pisani - Zeelot
+ * @copyright (c) 2008-2010 Lorenzo Pisani
+ * @license http://yurikocms.com/license
+ */
+class Yuriko_YForm_Field_File extends YForm_Element {
+
+ protected $_view = 'input/upload';
+
+ public function __construct($name)
+ {
+ parent::__construct($name);
+
+ $this->set_attribute('type', 'file');
+ }
+
+} // End Yuriko_YForm_Field_File
View
1  classes/yuriko/yform/field/upload.php
@@ -4,6 +4,7 @@
* @author Lorenzo Pisani - Zeelot
* @copyright (c) 2008-2010 Lorenzo Pisani
* @license http://yurikocms.com/license
+ * @deprecated will be removed in 2.0, use the file field
*/
class Yuriko_YForm_Field_Upload extends YForm_Element {
Please sign in to comment.
Something went wrong with that request. Please try again.