[Solar-svn] Revision 2734
pmjones at solarphp.com
pmjones at solarphp.com
Wed Aug 29 16:33:26 CDT 2007
part 1 of 2-step to change caps in SanitizeIsoTimeStamp
Deleted: branches/orm/Solar/Filter/SanitizeIsoTimeStamp.php
===================================================================
--- branches/orm/Solar/Filter/SanitizeIsoTimeStamp.php 2007-08-24 13:36:39 UTC (rev 2733)
+++ branches/orm/Solar/Filter/SanitizeIsoTimeStamp.php 2007-08-29 21:33:26 UTC (rev 2734)
@@ -1,59 +0,0 @@
-<?php
-/**
- *
- * Sanitizes a value to an ISO-8601 timestamp.
- *
- * @category Solar
- *
- * @package Solar_Filter
- *
- * @author Paul M. Jones <pmjones at solarphp.com>
- *
- * @license http://opensource.org/licenses/bsd-license.php BSD
- *
- * @version $Id$
- *
- */
-
-/**
- *
- * Sanitizes a value to an ISO-8601 timestamp.
- *
- * @category Solar
- *
- * @package Solar_Filter
- *
- */
-class Solar_Filter_SanitizeIsoTimestamp extends Solar_Filter_Abstract {
-
- /**
- *
- * Forces the value to an ISO-8601 formatted timestamp using a space
- * separator ("yyyy-mm-dd hh:ii:ss") instead of a "T" separator.
- *
- * @param string $value The value to be sanitized. If an integer, it
- * is used as a Unix timestamp; otherwise, converted to a Unix
- * timestamp using [[php::strtotime() | ]].
- *
- * @return string The sanitized value.
- *
- */
- public function sanitizeIsoTimestamp($value)
- {
- // if the value is not required, and is blank, sanitize to null
- $null = ! $this->_filter->getRequire() &&
- $this->_filter->validateBlank($value);
-
- if ($null) {
- return null;
- }
-
- // normal sanitize
- $format = 'Y-m-d H:i:s';
- if (is_int($value)) {
- return date($format, $value);
- } else {
- return date($format, strtotime($value));
- }
- }
-}
\ No newline at end of file
Copied: branches/orm/Solar/Filter/tmp.php (from rev 2636, branches/orm/Solar/Filter/SanitizeIsoTimeStamp.php)
===================================================================
--- branches/orm/Solar/Filter/tmp.php (rev 0)
+++ branches/orm/Solar/Filter/tmp.php 2007-08-29 21:33:26 UTC (rev 2734)
@@ -0,0 +1,59 @@
+<?php
+/**
+ *
+ * Sanitizes a value to an ISO-8601 timestamp.
+ *
+ * @category Solar
+ *
+ * @package Solar_Filter
+ *
+ * @author Paul M. Jones <pmjones at solarphp.com>
+ *
+ * @license http://opensource.org/licenses/bsd-license.php BSD
+ *
+ * @version $Id$
+ *
+ */
+
+/**
+ *
+ * Sanitizes a value to an ISO-8601 timestamp.
+ *
+ * @category Solar
+ *
+ * @package Solar_Filter
+ *
+ */
+class Solar_Filter_SanitizeIsoTimestamp extends Solar_Filter_Abstract {
+
+ /**
+ *
+ * Forces the value to an ISO-8601 formatted timestamp using a space
+ * separator ("yyyy-mm-dd hh:ii:ss") instead of a "T" separator.
+ *
+ * @param string $value The value to be sanitized. If an integer, it
+ * is used as a Unix timestamp; otherwise, converted to a Unix
+ * timestamp using [[php::strtotime() | ]].
+ *
+ * @return string The sanitized value.
+ *
+ */
+ public function sanitizeIsoTimestamp($value)
+ {
+ // if the value is not required, and is blank, sanitize to null
+ $null = ! $this->_filter->getRequire() &&
+ $this->_filter->validateBlank($value);
+
+ if ($null) {
+ return null;
+ }
+
+ // normal sanitize
+ $format = 'Y-m-d H:i:s';
+ if (is_int($value)) {
+ return date($format, $value);
+ } else {
+ return date($format, strtotime($value));
+ }
+ }
+}
\ No newline at end of file
More information about the Solar-svn
mailing list