[Cs-versionparse-commits] SF.net SVN: cs-versionparse:[22] trunk/0.1/cs_version.abstract.class.php
Status: Inactive
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2009-08-11 18:24:50
|
Revision: 22
http://cs-versionparse.svn.sourceforge.net/cs-versionparse/?rev=22&view=rev
Author: crazedsanity
Date: 2009-08-11 18:24:42 +0000 (Tue, 11 Aug 2009)
Log Message:
-----------
Ability to get values of private/protected vars.
/cs_version.abstract.class.php:
* __get() [NEW]:
-- allows other classes to retrieve values of private/protected
vars/members.
Modified Paths:
--------------
trunk/0.1/cs_version.abstract.class.php
Modified: trunk/0.1/cs_version.abstract.class.php
===================================================================
--- trunk/0.1/cs_version.abstract.class.php 2009-06-11 01:09:58 UTC (rev 21)
+++ trunk/0.1/cs_version.abstract.class.php 2009-08-11 18:24:42 UTC (rev 22)
@@ -74,6 +74,14 @@
//=========================================================================
+ public function __get($var) {
+ return($this->$var);
+ }//end __get()
+ //=========================================================================
+
+
+
+ //=========================================================================
final public function get_project() {
$retval = NULL;
$this->auto_set_version_file();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|