apps/activity/lib/Data.php
/**
	 * Delete old events
	 *
	 * @param int $expireDays Minimum 1 day
	 */
Delete old events
@param int $expireDays Minimum 1 day
Delete old events @param int $expireDays Minimum 1 day
public function expire($expireDays = 365) {
		$ttl = (60 * 60 * 24 * max(1, $expireDays));
		$timelimit = time() - $ttl;
		$this->deleteActivities(array(
			'timestamp' => array($timelimit, '<'),
		));
	}
public function expire ( $ expireDays = 365 ) { $ ttl = ( 60 * 60 * 24 * max ( 1 , $ expireDays ) ) ; $ timelimit = time ( ) - $ ttl ; $ this -> deleteActivities ( array ( 'timestamp' => array ( $ timelimit , '<' ) , ) ) ; }
Delete old events
 @param int $expireDays Minimum 1 day
Delete old events @param int $expireDays Minimum 1 day