/** * @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; }
public static function seed($table) { Eloquent::unguard(); $_this = new self(); $_this->call(ucwords($table) . 'TableSeeder'); }