ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder Class Reference

Table builder for self assessment questions from a pool. More...

+ Inheritance diagram for ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder:
+ Collaboration diagram for ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder:

Public Member Functions

 __construct (protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $pool_ref_id, protected int $pool_obj_id, object $parent_gui, string $parent_cmd)
 
- Public Member Functions inherited from ILIAS\Repository\Table\CommonTableBuilder
 __construct (protected object $parent_gui, protected string $parent_cmd, bool $numeric_ids=true)
 
 getTable ()
 

Protected Member Functions

 getId ()
 
 getTitle ()
 
 getRetrieval ()
 
 transformRow (array $data_row)
 transform raw data array to table row data array More...
 
 build (TableAdapterGUI $table)
 
- Protected Member Functions inherited from ILIAS\Repository\Table\CommonTableBuilder
 getId ()
 
 getTitle ()
 
 getRetrieval ()
 
 getNamespace ()
 
 getOrderingCommand ()
 
 activeAction (string $action, array $data_row)
 
 transformRow (array $data_row)
 transform raw data array to table row data array More...
 
 build (TableAdapterGUI $table)
 

Protected Attributes

ILIAS TestQuestionPool Questions PublicInterface $test_question
 
- Protected Attributes inherited from ILIAS\Repository\Table\CommonTableBuilder
TableAdapterGUI $table
 

Detailed Description

Table builder for self assessment questions from a pool.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 20 of file CopySelfAssQuestionTableBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::__construct ( protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected int  $pool_ref_id,
protected int  $pool_obj_id,
object  $parent_gui,
string  $parent_cmd 
)

Definition at line 24 of file CopySelfAssQuestionTableBuilder.php.

31 {
32 $this->test_question = $domain->testQuestion();
33 parent::__construct($parent_gui, $parent_cmd);
34 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\COPage\InternalDomainService\testQuestion().

+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::build ( TableAdapterGUI  $table)
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 62 of file CopySelfAssQuestionTableBuilder.php.

62 : TableAdapterGUI
63 {
64 $lng = $this->domain->lng();
65
67 ->textColumn("title", $lng->txt("title"), true)
68 ->textColumn("ttype", $lng->txt("cont_question_type"), true)
69 ->singleAction("copyQuestion", $lng->txt("cont_copy_question_into_page"));
70
71 return $table;
72 }
textColumn(string $key, string $title, bool $sortable=false)
global $lng
Definition: privfeed.php:26

References $lng, ILIAS\Repository\Table\CommonTableBuilder\$table, and ILIAS\Repository\Table\TableAdapterGUI\textColumn().

+ Here is the call graph for this function:

◆ getId()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::getId ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 36 of file CopySelfAssQuestionTableBuilder.php.

36 : string
37 {
38 return "cont_qpl";
39 }

◆ getRetrieval()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::getRetrieval ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 46 of file CopySelfAssQuestionTableBuilder.php.

46 : RetrievalInterface
47 {
48 return $this->domain->pc()->selfAssQuestionRetrieval($this->pool_ref_id, $this->pool_obj_id);
49 }

◆ getTitle()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::getTitle ( )
protected

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 41 of file CopySelfAssQuestionTableBuilder.php.

41 : string
42 {
43 return ilObject::_lookupTitle($this->pool_obj_id);
44 }
static _lookupTitle(int $obj_id)

References ilObject\_lookupTitle().

+ Here is the call graph for this function:

◆ transformRow()

ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::transformRow ( array  $data_row)
protected

transform raw data array to table row data array

Reimplemented from ILIAS\Repository\Table\CommonTableBuilder.

Definition at line 51 of file CopySelfAssQuestionTableBuilder.php.

51 : array
52 {
53 $lng = $this->domain->lng();
54
55 return [
56 "question_id" => $data_row["question_id"],
57 "title" => $data_row["title"],
58 "ttype" => $this->test_question->getGeneralQuestionProperties($data_row["question_id"])->getTypeName($lng)
59 ];
60 }

References $lng.

Field Documentation

◆ $test_question

ILIAS TestQuestionPool Questions PublicInterface ILIAS\COPage\PC\Question\CopySelfAssQuestionTableBuilder::$test_question
protected

Definition at line 22 of file CopySelfAssQuestionTableBuilder.php.


The documentation for this class was generated from the following file: