00001 <?php 00002 00008 class views_handler_field_last_comment_timestamp extends views_handler_field_date { 00009 function construct() { 00010 parent::construct(); 00011 $this->additional_fields['comment_count'] = 'comment_count'; 00012 } 00013 00014 function render($values) { 00015 $comment_count = $this->get_value($values, 'comment_count'); 00016 if (empty($this->options['empty_zero']) || $comment_count) { 00017 return parent::render($values); 00018 } 00019 else { 00020 return NULL; 00021 } 00022 } 00023 }