[Affelio-cvs 1321] CVS update: affelio/lib

Back to archive index

Tadashi Okoshi slash****@users*****
2006年 6月 3日 (土) 17:47:25 JST


Index: affelio/lib/AffelioApp.pm
diff -u affelio/lib/AffelioApp.pm:1.23 affelio/lib/AffelioApp.pm:1.24
--- affelio/lib/AffelioApp.pm:1.23	Mon May 29 19:16:08 2006
+++ affelio/lib/AffelioApp.pm	Sat Jun  3 17:47:25 2006
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: AffelioApp.pm,v 1.23 2006/05/29 10:16:08 slash5234 Exp $
+# $Id: AffelioApp.pm,v 1.24 2006/06/03 08:47:25 slash5234 Exp $
 
 package AffelioApp;
 {
@@ -419,6 +419,28 @@
 	return($ret);
     }
 
+    ######################################################################
+    #get_dbtbl_prefix
+    #  returns prefix of database table name that calling application
+    #  needs to use.
+    ######################################################################
+    sub get_dbtbl_prefix{
+	my $self = shift;
+	my $af = $self->{af};
+	my $ret="AFuser_";
+
+	#AFE2
+	#   "AF_Personal_user15_"
+	#
+	#Standalone
+	#   "AFuser_"
+	if($af->{site__farm_mode} eq "AFE2"){
+	    $ret = "AF_" . $af->{site__exec_type} . "_" . "$af->{site__username}" . "_";
+	}
+
+	return($ret);
+    }
+
 
     ######################################################################
     #Destructor


Affelio-cvs メーリングリストの案内
Back to archive index