当前位置: 首页>>代码示例>>PHP>>正文


PHP assQuestion::__construct方法代码示例

本文整理汇总了PHP中assQuestion::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP assQuestion::__construct方法的具体用法?PHP assQuestion::__construct怎么用?PHP assQuestion::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在assQuestion的用法示例。


在下文中一共展示了assQuestion::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 /**
  * SyntaxTree constructor
  *
  * The constructor takes possible arguments an creates an instance of the assTextSubset object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A TextSubsetal ID to identify the owner/creator
  * @param string $question The question string of the TextSubset question
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->answers = array();
     $this->correctanswers = 0;
     $this->plugin = null;
 }
开发者ID:prometoys,项目名称:fourtree,代码行数:20,代码来源:class.SyntaxTree.php

示例2: array

 /**
  * assErorText constructor
  *
  * @param string 	$title 		A title string to describe the question.
  * @param string 	$comment 	A comment string to describe the question.
  * @param string 	$author 	A string containing the name of the questions author.
  * @param integer 	$owner 		A numerical ID to identify the owner/creator.
  * @param string 	$question 	The question string of the single choice question.
  * 
  * @return \assErrorText
  */
 function __construct($title = '', $comment = '', $author = '', $owner = -1, $question = '')
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->errortext = '';
     $this->textsize = 100.0;
     $this->errordata = array();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:18,代码来源:class.assErrorText.php

示例3: __construct

 /**
  * assImagemapQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the assImagemapQuestion object.
  *
  * @param string  $title    		A title string to describe the question.
  * @param string  $comment  		A comment string to describe the question.
  * @param string  $author   		A string containing the name of the questions author.
  * @param integer $owner    		A numerical ID to identify the owner/creator.
  * @param string  $question 		The question string of the imagemap question.
  * @param string  $image_filename
  * 
  * @return \assImagemapQuestion
  */
 public function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "", $image_filename = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->image_filename = $image_filename;
     $this->answers = array();
     $this->coords = array();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:21,代码来源:class.assImagemapQuestion.php

示例4: __construct

 /**
  * assSingleChoice constructor
  *
  * The constructor takes possible arguments an creates an instance of the assSingleChoice object.
  *
  * @param string     $title       A title string to describe the question
  * @param string     $comment     A comment string to describe the question
  * @param string     $author      A string containing the name of the questions author
  * @param integer    $owner       A numerical ID to identify the owner/creator
  * @param string     $question    The question string of the single choice question
  * @param int|string $output_type The output order of the single choice answers
  *
  * @see    assQuestion:assQuestion()
  */
 public function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "", $output_type = OUTPUT_ORDER)
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->thumb_size = 150;
     $this->output_type = $output_type;
     $this->answers = array();
     $this->shuffle = 1;
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:22,代码来源:class.assSingleChoice.php

示例5: array

 /**
  * assFormulaQuestion constructor
  * The constructor takes possible arguments an creates an instance of the assFormulaQuestion object.
  * @param string  $title    A title string to describe the question
  * @param string  $comment  A comment string to describe the question
  * @param string  $author   A string containing the name of the questions author
  * @param integer $owner    A numerical ID to identify the owner/creator
  * @param string  $question The question string of the single choice question
  * @access public
  * @see    assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->variables = array();
     $this->results = array();
     $this->resultunits = array();
     $this->unitrepository = new ilUnitConfigurationRepository(0);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:19,代码来源:class.assFormulaQuestion.php

示例6: array

 /**
  * assTextQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the assTextQuestion object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the text question
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->maxNumOfChars = 0;
     $this->points = 0;
     $this->answers = array();
     $this->matchcondition = 0;
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:21,代码来源:class.assTextQuestion.php

示例7: array

 /**
  * assFlashQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the assFlashQuestion object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the single choice question
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->parameters = array();
     $this->width = 540;
     $this->height = 400;
     $this->applet = "";
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:21,代码来源:class.assFlashQuestion.php

示例8:

 /**
  * ilAccountingQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the ilAccountingQuestion object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the single choice question
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     // init the plugin object
     $this->getPlugin();
     // include the parts class
     $this->plugin->includeClass('class.assAccountingQuestionPart.php');
 }
开发者ID:ilifau,项目名称:assAccountingQuestion,代码行数:21,代码来源:class.assAccountingQuestion.php

示例9: __construct

 /**
  * assMatchingQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the assMatchingQuestion object.
  *
  * @param string  $title    A title string to describe the question
  * @param string  $comment  A comment string to describe the question
  * @param string  $author   A string containing the name of the questions author
  * @param integer $owner    A numerical ID to identify the owner/creator
  * @param string  $question The question string of the matching question
  * @param int     $matching_type
  *
  * @return \assMatchingQuestion
  */
 public function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "", $matching_type = MT_TERMS_DEFINITIONS)
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->matchingpairs = array();
     $this->matching_type = $matching_type;
     $this->terms = array();
     $this->definitions = array();
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:22,代码来源:class.assMatchingQuestion.php

示例10: array

 /**
  * assClozeTest constructor
  *
  * The constructor takes possible arguments an creates an instance of the assClozeTest object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $cloze_text The question string of the cloze test
  * @access public
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->start_tag = "[gap]";
     $this->end_tag = "[/gap]";
     $this->gaps = array();
     $this->setClozeText($cloze_text);
     $this->fixedTextLength = "";
     $this->identical_scoring = 1;
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:22,代码来源:class.assClozeTest.php

示例11: __construct

 public function __construct($title = '', $comment = '', $author = '', $owner = -1, $question = '')
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->shuffleAnswersEnabled = true;
     $this->answerType = self::ANSWER_TYPE_SINGLE_LINE;
     $this->thumbSize = self::DEFAULT_THUMB_SIZE;
     $this->scorePartialSolutionEnabled = true;
     $this->optionLabel = self::OPTION_LABEL_RIGHT_WRONG;
     $this->customTrueOptionLabel = '';
     $this->customFalseOptionLabel = '';
     require_once 'Modules/TestQuestionPool/classes/feedback/class.ilAssConfigurableMultiOptionQuestionFeedback.php';
     $this->specificFeedbackSetting = ilAssConfigurableMultiOptionQuestionFeedback::FEEDBACK_SETTING_ALL;
     $this->answers = array();
     $this->setPoints('');
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:15,代码来源:class.assKprimChoice.php

示例12: array

 /**
  * assJavaApplet constructor
  *
  * The constructor takes possible arguments an creates an instance of the assJavaApplet object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the multiple choice question
  * @param integer $response Indicates the response type of the multiple choice question
  * @param integer $output_type The output order of the multiple choice answers
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "", $javaapplet_filename = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->javaapplet_filename = $javaapplet_filename;
     $this->parameters = array();
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:21,代码来源:class.assJavaApplet.php

示例13:

 /**
  * assNumeric constructor
  *
  * The constructor takes possible arguments an creates an instance of the assNumeric object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the numeric question
  * @access public
  * @see assQuestion:assQuestion()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->maxchars = 6;
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:18,代码来源:class.assNumeric.php

示例14:

 /**
  * assOrderingHorizontal constructor
  *
  * The constructor takes possible arguments an creates an instance of the assOrderingHorizontal object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the single choice question
  * @see assQuestion:__construct()
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "")
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->ordertext = "";
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:17,代码来源:class.assOrderingHorizontal.php

示例15: array

 /**
  * assOrderingQuestion constructor
  *
  * The constructor takes possible arguments an creates an instance of the assOrderingQuestion object.
  *
  * @param string $title A title string to describe the question
  * @param string $comment A comment string to describe the question
  * @param string $author A string containing the name of the questions author
  * @param integer $owner A numerical ID to identify the owner/creator
  * @param string $question The question string of the ordering test
  * @access public
  */
 function __construct($title = "", $comment = "", $author = "", $owner = -1, $question = "", $ordering_type = OQ_TERMS)
 {
     parent::__construct($title, $comment, $author, $owner, $question);
     $this->answers = array();
     $this->ordering_type = $ordering_type;
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:18,代码来源:class.assOrderingQuestion.php


注:本文中的assQuestion::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。