src/AppBundle/Extension/QuestionExtension.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace AppBundle\Extension;
use Biz\Question\Type\Choice;
use Biz\Question\Type\Determine;
use Biz\Question\Type\Essay;
use Biz\Question\Type\Fill;
use Biz\Question\Type\Material;
use Biz\Question\Type\SingleChoice;
use Biz\Question\Type\UncertainChoice;
use Biz\Testpaper\Pattern\QuestionTypePattern;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
class QuestionExtension extends Extension implements ServiceProviderInterface
{
public function getQuestionTypes()
{
return array(
'single_choice' => array(
'name' => 'question.type.single_choice',
'actions' => array(
'create' => 'AppBundle:Question/SingleChoiceQuestion:create',
'edit' => 'AppBundle:Question/SingleChoiceQuestion:edit',
'show' => 'AppBundle:Question/SingleChoiceQuestion:show',
),
'templates' => array(
'do' => 'question/single-choice-do.html.twig',
'analysis' => 'question/analysis/single-choice.html.twig',
),
'hasMissScore' => 0,
),
'choice' => array(
'name' => 'question.type.multiple_choice',
'actions' => array(
'create' => 'AppBundle:Question/ChoiceQuestion:create',
'edit' => 'AppBundle:Question/ChoiceQuestion:edit',
'show' => 'AppBundle:Question/ChoiceQuestion:show',
),
'templates' => array(
'do' => 'question/choice-do.html.twig',
'analysis' => 'question/analysis/choice.html.twig',
),
'hasMissScore' => 1,
),
'essay' => array(
'name' => 'question.type.essay',
'actions' => array(
'create' => 'AppBundle:Question/EssayQuestion:create',
'edit' => 'AppBundle:Question/EssayQuestion:edit',
'show' => 'AppBundle:Question/EssayQuestion:show',
),
'templates' => array(
'do' => 'question/essay-do.html.twig',
'analysis' => 'question/analysis/essay.html.twig',
),
'hasMissScore' => 0,
),
'uncertain_choice' => array(
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。