[Affelio-cvs 957] CVS update: affelio/lib/Affelio/Managing

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 19日 (月) 16:10:20 JST


Index: affelio/lib/Affelio/Managing/AccessLogManager.pm
diff -u affelio/lib/Affelio/Managing/AccessLogManager.pm:1.9 affelio/lib/Affelio/Managing/AccessLogManager.pm:1.10
--- affelio/lib/Affelio/Managing/AccessLogManager.pm:1.9	Tue Nov  8 16:01:44 2005
+++ affelio/lib/Affelio/Managing/AccessLogManager.pm	Mon Dec 19 16:10:20 2005
@@ -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: AccessLogManager.pm,v 1.9 2005/11/08 07:01:44 slash5234 Exp $
+# $Id: AccessLogManager.pm,v 1.10 2005/12/19 07:10:20 slash5234 Exp $
 
 package Affelio::Managing::AccessLogManager;
 {
@@ -161,6 +161,23 @@
 	}else{
 	    debug_print("AccessLog:save: You are a repeater. ignore you.");
 	}
+
+	if($type eq "f1"){
+	    try{
+		$af->getFM->set_attribute_by_afid($afid,
+						  "last_access",
+				  Affelio::misc::Time::get_timestamp()
+					  );
+
+		$af->getFM->incr_attribute_by_afid($afid,
+						   "count_access");
+
+	    }catch Error with{
+		my $e = shift;
+		throw Affelio::exception::DBException($e);
+	    };
+	}
+
     }
 
     #######################################################################


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