You are here

function backup_migrate_schedule::get_frequency_period in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
  2. 8.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
  3. 6.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
  5. 7.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()

Get the period of the frequency (ie: seconds, minutes etc.)

2 calls to backup_migrate_schedule::get_frequency_period()
backup_migrate_schedule::edit_form in includes/schedules.inc
Get the edit form.
backup_migrate_schedule::get_frequency_description in includes/schedules.inc
Format a frequency in human-readable form.

File

includes/schedules.inc, line 587
All of the schedule handling code needed for Backup and Migrate.

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function get_frequency_period() {
  foreach (array_reverse($this
    ->frequency_periods()) as $period) {
    if ($period['seconds'] && $this->period % $period['seconds'] === 0) {
      return $period;
    }
  }
}