19 declare(strict_types=1);
    31     public function buildPossiblyLinkedTestTitle(
    40         return $this->buildPossiblyLinkedTitle(
    52     public function buildPossiblyLinkedQuestonPoolTitle(
    60         bool $reference = 
false    62         if ($qpl_id === null) {
    67             return $lng->
txt(
'tst_question_not_from_pool_info');
    70         return $this->buildPossiblyLinkedTitle(
    78             \ilObjQuestionPoolGUI::class,
    83     private function buildPossiblyLinkedTitle(
    91         string $target_class_type,
    92         bool $reference = 
false    94         $qpl_obj_id = $qpl_id;
    98         $ref_id = $this->getFirstReferenceWithCurrentUserAccess(
   106             return $title . 
' (' . $lng->
txt(
'status_no_permission') . 
')';
   109         return $ui_renderer->render(
   110             $this->getLinkedTitle($ctrl, $ui_factory, 
$ref_id, $title, $target_class_type)
   114     private function getLinkedTitle(
   119         string $target_class_type
   122         $linked_title = $ui_factory->link()->standard(
   129         return $linked_title;
   132     private function getFirstReferenceWithCurrentUserAccess(
   138         if ($reference && $access->
checkAccess(
'read', 
'', $qpl_id)) {
   142         $references_with_access = array_filter(
   143             array_values($all_ref_ids),
   144             function ($ref_id) use ($access) {
   148         if ($references_with_access !== []) {
   149             return array_shift($references_with_access);
 
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
setParameterByClass(string $a_class, string $a_parameter, $a_value)
 
static _lookupObjId(int $ref_id)
 
clearParametersByClass(string $a_class)
 
static _lookupType(int $id, bool $reference=false)