--- /dev/null
+<?php
+
+namespace App\Console\Commands;
+
+use App\Models\Traits\QuizBranches;
+use Cubist\Backpack\Console\Commands\CubistCommand;
+use Cubist\Util\PHP;
+
+class QuizPullSources extends CubistCommand
+{
+ protected $signature = 'quiz:player:updatesources';
+ protected $description = 'Update quiz player sources from git repos';
+
+ use QuizBranches;
+
+ public function handle()
+ {
+ PHP::neverStop(true);
+ $this->updateAllBranches();
+ }
+
+}
namespace App\Fields;
+use App\Models\Traits\QuizBranches;
use Cubist\Backpack\Magic\Fields\SelectFromArray;
class QuizDevelopmentVersion extends SelectFromArray
{
protected static $__options = null;
+ use QuizBranches;
+
/**
* @throws \JsonException
*/
namespace App\Models;
use App\Elearning\QuizCompiler;
+use App\Fields\QuizDevelopmentVersion;
use App\Fields\SCORMVersion;
use App\Http\Controllers\Admin\Operations\ChangeownerOperation;
use App\Http\Controllers\Admin\Operations\Quiz\DownloadOperation;
public $registerMediaConversionsUsingModelInstance = false;
- protected $_operations = [PreviewOperation::class, DownloadOperation::class, LogOperation::class, ReportOperation::class, ChangeownerOperation::class];
+ protected $_operations = [PreviewOperation::class, DownloadOperation::class, LogOperation::class, ReportOperation::class, ChangeownerOperation::class];
use SCORMVersionTrait;
$this->addColumnDateFields();
$this->addOwnerField();
+ $this->addField('dev_version', QuizDevelopmentVersion::class, __('Canal de mise à jour'), ['default' => 'stable', 'databaseDefault' => 'stable']);
$this->addField('section_settings', FormSuperSection::class, __('Paramètres'));