You are here

public static function UltimateCronJob::factory in Ultimate Cron 7.2

Create an instance of this object with the data from another object.

Parameters

object $object: The source object.

Return value

UltimateCronJob Resulting object.

File

./ultimate_cron.job.inc, line 30
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public static function factory($object) {
  $result = new self();
  foreach ($object as $key => $value) {
    $result->{$key} = $value;
  }
  return $result;
}