public function backup_migrate_schedule::get_frequency_period in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
- 8.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
- 6.3 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
- 6.2 includes/schedules.inc \backup_migrate_schedule::get_frequency_period()
- 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 638 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
public function get_frequency_period() {
foreach (array_reverse($this
->frequency_periods()) as $period) {
if ($period['seconds'] && $this->period % $period['seconds'] === 0) {
return $period;
}
}
}