/**
  * @return self
  */
 public static function newPurgeTask()
 {
     global $wgCityId;
     $task = new self();
     $task->call('purgeExpiredRows');
     $task->wikiId($wgCityId);
     $task->title(\SpecialPage::getTitleFor('Recentchanges'));
     $task->queue();
     return $task;
 }
Example #2
0
 public static function seed($table)
 {
     Eloquent::unguard();
     $_this = new self();
     $_this->call(ucwords($table) . 'TableSeeder');
 }