← Back to team overview

anewt-developers team mailing list archive

[Branch ~uws/anewt/anewt.uws] Rev 1801: [datetime] Mark AnewtDateTimeAtom fields public

 

------------------------------------------------------------
revno: 1801
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt
timestamp: Tue 2010-10-26 21:09:10 +0200
message:
  [datetime] Mark AnewtDateTimeAtom fields public
  
  The AnewtDateTimeAtom should be used as an opaque structure,
  but these fields are accessed by the AnewtDateTime functions
  and hence public.
modified:
  core/datetime.lib.php


--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws

Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription
=== modified file 'core/datetime.lib.php'
--- core/datetime.lib.php	2010-03-27 20:50:26 +0000
+++ core/datetime.lib.php	2010-10-26 19:09:10 +0000
@@ -53,12 +53,12 @@
  */
 final class AnewtDateTimeAtom
 {
-	var $year;   /**< Year    */
-	var $month;  /**< Month   */
-	var $day;    /**< Day     */
-	var $hour;   /**< Hours   */
-	var $minute; /**< Minutes */
-	var $second; /**< Seconds */
+	public $year;   /**< Year    */
+	public $month;  /**< Month   */
+	public $day;    /**< Day     */
+	public $hour;   /**< Hours   */
+	public $minute; /**< Minutes */
+	public $second; /**< Seconds */
 
 	/**
 	 * Constructs a new AnewtDateTimeAtom object.