Model/Behavior/SoftDeleteBehavior.php
protected function _purgeDeletedConditions($model, $expiration = '-90 days') {
		$purgeDate = date('Y-m-d H:i:s', strtotime($expiration));
		$conditions = array();
		foreach ($this->settings[$model->alias] as $flag => $date) {
			$conditions[$model->alias . '.' . $flag] = true;
			if ($date) {
				$conditions[$model->alias . '.' . $date . ' <'] = $purgeDate;
			}
		}
		return $conditions;
	}
protected function _purgeDeletedConditions($model, $expiration = '-90 days') {
		$purgeDate = date('Y-m-d H:i:s', strtotime($expiration));
		$conditions = array();
		foreach ($this->settings[$model->alias] as $flag => $date) {
			$conditions[$model->alias . '.' . $flag] = true;
			if ($date) {
				$conditions[$model->alias . '.' . $date . ' <'] = $purgeDate;
			}
		}
		return $conditions;
	}
protected function _purgeDeletedConditions ( $ model , $ expiration = '-90 days' ) { $ purgeDate = date ( 'Y-m-d H:i:s' , strtotime ( $ expiration ) ) ; $ conditions = array ( ) ; foreach ( $ this -> settings [ $ model -> alias ] as $ flag => $ date ) { $ conditions [ $ model -> alias . '.' . $ flag ] = true ; if ( $ date ) { $ conditions [ $ model -> alias . '.' . $ date . ' <' ] = $ purgeDate ; } } return $ conditions ; }
Returns conditions for finding outdated records

@param object $model
@param mixed $expiration anything parseable by strtotime(), by default '-90 days'
@return array
Returns conditions for finding outdated records