[Beeframework-svn] SF.net SVN: beeframework:[23] trunk/framework/Bee/Beans
Brought to you by:
b_hartmann,
m_plomer
|
From: <m_p...@us...> - 2013-04-30 20:10:32
|
Revision: 23
http://sourceforge.net/p/beeframework/code/23
Author: m_plomer
Date: 2013-04-30 20:10:29 +0000 (Tue, 30 Apr 2013)
Log Message:
-----------
- merge with private version
Removed Paths:
-------------
trunk/framework/Bee/Beans/PropertyEditor/Float.php
trunk/framework/Bee/Beans/PropertyEditor/Integer.php
trunk/framework/Bee/Beans/ValueHolder.php
Deleted: trunk/framework/Bee/Beans/PropertyEditor/Float.php
===================================================================
--- trunk/framework/Bee/Beans/PropertyEditor/Float.php 2013-04-30 19:47:54 UTC (rev 22)
+++ trunk/framework/Bee/Beans/PropertyEditor/Float.php 2013-04-30 20:10:29 UTC (rev 23)
@@ -1,49 +0,0 @@
-<?php
-/*
- * Copyright 2008-2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Enter description here...
- *
- * @author Benjamin Hartmann
- */
-class Bee_Beans_PropertyEditor_Float implements Bee_Beans_IPropertyEditor {
-
- /**
- * Enter description here...
- *
- * @param int $value
- * @return String
- */
- public function toString($value) {
- Bee_Utils_Assert::isTrue(is_float($value) || is_int($value));
- return strval($value);
- }
-
-
-
- /**
- * Enter description here...
- *
- * @param String $value
- * @return int
- */
- public function fromString($value) {
- Bee_Utils_Assert::isTrue(is_string($value) && is_numeric($value));
- return floatval($value);
- }
-}
-?>
\ No newline at end of file
Deleted: trunk/framework/Bee/Beans/PropertyEditor/Integer.php
===================================================================
--- trunk/framework/Bee/Beans/PropertyEditor/Integer.php 2013-04-30 19:47:54 UTC (rev 22)
+++ trunk/framework/Bee/Beans/PropertyEditor/Integer.php 2013-04-30 20:10:29 UTC (rev 23)
@@ -1,54 +0,0 @@
-<?php
-/*
- * Copyright 2008-2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Enter description here...
- *
- * @author Benjamin Hartmann
- */
-class Bee_Beans_PropertyEditor_Integer implements Bee_Beans_IPropertyEditor {
-
- /**
- * Enter description here...
- *
- * @param int $value
- * @return String
- */
- public function toString($value) {
- Bee_Utils_Assert::isTrue(is_int($value));
- return strval($value);
- }
-
-
-
- /**
- * Enter description here...
- *
- * @param String $value
- * @return int
- */
- public function fromString($value) {
- Bee_Utils_Assert::isTrue(is_string($value) && is_numeric($value));
- $fResult = floatval($value);
- $iResult = intval($fResult);
- if ($iResult!=$fResult) {
- throw new Exception('Cannot convert type '.gettype($value).' to integer.');
- }
- return $iResult;
- }
-}
-?>
\ No newline at end of file
Deleted: trunk/framework/Bee/Beans/ValueHolder.php
===================================================================
--- trunk/framework/Bee/Beans/ValueHolder.php 2013-04-30 19:47:54 UTC (rev 22)
+++ trunk/framework/Bee/Beans/ValueHolder.php 2013-04-30 20:10:29 UTC (rev 23)
@@ -1,46 +0,0 @@
-<?php
-/*
- * Copyright 2008-2010 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-class Bee_Beans_ValueHolder {
-
- /**
- * Enter description here...
- *
- * @var mixed
- */
- private $value;
-
- /**
- * Enter description here...
- *
- * @return mixed
- */
- public final function getValue() {
- return $this->value;
- }
-
- /**
- * Enter description here...
- *
- * @param mixed $value
- * @return void
- */
- public final function setValue($value) {
- $this->value = $value;
- }
-}
-?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|