svnno****@sourc*****
svnno****@sourc*****
2008年 11月 26日 (水) 18:50:21 JST
Revision: 844 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=844 Author: tach Date: 2008-11-26 18:50:21 +0900 (Wed, 26 Nov 2008) Log Message: ----------- fix merge error Modified Paths: -------------- slashjp/trunk/plugins/Journal/Journal.pm -------------- next part -------------- Modified: slashjp/trunk/plugins/Journal/Journal.pm =================================================================== --- slashjp/trunk/plugins/Journal/Journal.pm 2008-11-26 08:53:23 UTC (rev 843) +++ slashjp/trunk/plugins/Journal/Journal.pm 2008-11-26 09:50:21 UTC (rev 844) @@ -724,6 +724,15 @@ } } +sub getJournalByTime { + my($self, $sign, $journal, $options) = @_; + my $constants = getCurrentStatic(); + $options = {} if !$options || ref($options) ne 'HASH'; + my $limit = $options->{limit} || 1; + my $uid = int($options->{uid}) || undef; + my $where = ""; + my $name = 'journal_by_time'; + my $order = $sign eq '<' ? 'DESC' : 'ASC'; # $journal->[0]: datetime string # $journal->{1]: journaltext