Revision: 225
http://sourceforge.net/p/beeframework/code/225
Author: m_plomer
Date: 2014-09-22 19:18:45 +0000 (Mon, 22 Sep 2014)
Log Message:
-----------
- changes to Bee_Utils_Strings::toAscii
Modified Paths:
--------------
trunk/framework/Bee/Beans/PropertyEditor/PropertyEditorRegistry.php
Added Paths:
-----------
trunk/framework/Bee/Beans/PropertyEditor/UrlParamPropertyEditor.php
Modified: trunk/framework/Bee/Beans/PropertyEditor/PropertyEditorRegistry.php
===================================================================
--- trunk/framework/Bee/Beans/PropertyEditor/PropertyEditorRegistry.php 2014-09-22 09:01:40 UTC (rev 224)
+++ trunk/framework/Bee/Beans/PropertyEditor/PropertyEditorRegistry.php 2014-09-22 19:18:45 UTC (rev 225)
@@ -139,3 +139,4 @@
PropertyEditorRegistry::registerEditor(ITypeDefinitions::ARRAY_TYPE, new StringPropertyEditor());
PropertyEditorRegistry::registerEditor(ConstantPropertyEditor::TYPE_STRING, new ConstantPropertyEditor());
+PropertyEditorRegistry::registerEditor(UrlParamPropertyEditor::TYPE_STRING, new UrlParamPropertyEditor());
Added: trunk/framework/Bee/Beans/PropertyEditor/UrlParamPropertyEditor.php
===================================================================
--- trunk/framework/Bee/Beans/PropertyEditor/UrlParamPropertyEditor.php (rev 0)
+++ trunk/framework/Bee/Beans/PropertyEditor/UrlParamPropertyEditor.php 2014-09-22 19:18:45 UTC (rev 225)
@@ -0,0 +1,38 @@
+<?php
+
+namespace Bee\Beans\PropertyEditor;
+use Bee\Beans\IPropertyEditor;
+use Exception;
+
+
+/**
+ * Class UrlParamPropertyEditor
+ * @package Bee\Beans\PropertyEditor
+ */
+class UrlParamPropertyEditor implements IPropertyEditor {
+
+ const TYPE_STRING = 'urlparams';
+
+ /**
+ * Enter description here...
+ *
+ * @param mixed $value
+ * @throws Exception
+ * @return String
+ */
+ public function toString($value) {
+ throw new Exception('not implemented');
+ }
+
+ /**
+ * Enter description here...
+ *
+ * @param String $value
+ * @return mixed
+ */
+ public function fromString($value) {
+ $result = array();
+ parse_str($value, $result);
+ return $result;
+ }
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|