Get an array of the different titles (tag TITL) of an individual

@return array Array of titles
323243
public function getTitles(){
		if(is_null($this->titles) && $module = Module::getModuleByName(Constants::MODULE_MAJ_MISC_NAME)){
			$pattern = '/(.*) (('.$module->getSetting('MAJ_TITLE_PREFIX', '').')(.*))/';
			$this->titles=array();
			$titlefacts = $this->gedcomrecord->getFacts('TITL');
			foreach($titlefacts as $titlefact){
				$ct2 = preg_match_all($pattern, $titlefact->getValue(), $match2);
				if($ct2>0){
					$this->titles[$match2[1][0]][]= trim($match2[2][0]);
				}
				else{
					$this->titles[$titlefact->getValue()][]='';
				}
			}
		}
		return $this->titles;
	}
373632
private function fetchContentAttributes()
    {
        $returnAttributeArray = array();

        $identifierArray = $this->getIdentifiers( $this->origNamePattern );

        $attributes = $this->contentObject->fetchAttributesByIdentifier( $identifierArray, $this->version, array( $this->translation ) );

        if ( is_array( $attributes ) )
        {
            foreach ( $attributes as $attribute )
            {
                $identifier = $attribute->contentClassAttributeIdentifier();
                $returnAttributeArray[$identifier] = $attribute->title();
            }
        }
        else
        {
            $returnAttributeArray = array();
        }
        $this->attributeArray = $returnAttributeArray;
    }
711573
public function getTags()
    {
        return \is_string($value = $this->getContentValue('tags', null))
            ? array_unique(array_filter(explode(',', $value)))
            : null;
    }
1320766
protected function extractTitles()
    {
        $result = [];

        foreach ($this->registries[1] as $id => $title) {
            $data = [
                'assignment' => $this->detectAssignment($title)->id ?? null,
                'our_number' => (int) $title->our_number,
                'value' => (float) ($title->value / 100.0),
                'tax' => (float) ($title->tax / 100.0),
                'value_received' => (float) ($title->value_received / 100.0),
                'due' => static::parseDate($title->due),
                'occurrence' => $this->occurrence($title) ?? $title->occurrence,
                'occurrence_date' => static::parseDate($title->occurrence_date),
            ];
            $data['id'] = static::detectTitle($data);
            $result[] = $data;
        }

        return $result;
    }
190314
public function getLabels()
    {
        return [
            'name' => $this->plural,
            'singular_name' => $this->singular,
            'add_new' => 'Add New'.' '.$this->singular,
            'add_new_item' => 'Add New'.' '.$this->singular,
            'edit_item' => 'Edit'.' '.$this->singular,
            'new_item' => 'New'.' '.$this->singular,
            'all_items' => 'All'.' '.$this->plural,
            'view_item' => 'View'.' '.$this->singular,
            'search_items' => 'Search'.' '.$this->plural,
            'not_found' => $this->plural.' '.'no found',
            'not_found_in_trash' => $this->plural.' '.'no found in Trash',
            'parent_item_colon' => '',
            'menu_name' => $this->plural,
        ];
    }
760348
public function getListItems()
    {
        $item_arr = [];
        foreach ($this->items as $item)
        {
            $item_arr[$item->id] = $item->title;
        }
        return $item_arr;
    }
544357
private function getAllTags()
    {
        if ($comment = $this->getDocComment()) {
            if (preg_match_all("/\@(\w+)(.*)/", $comment, $m)) {
                foreach ($m[0] as $i => $result) {
                    $tagName = $m[1][$i];
                    $tagValue = trim($m[2][$i]);
                    $this->setTag($tagName, $tagValue);
                }
            }
        }
    }
801519
public function getTags()
    {
        $tags = [];
        $this->caller->execute(TagCommand::getInstance($this)->listTags());
        foreach ($this->caller->getOutputLines() as $tagString) {
            if ($tagString != '') {
                $tags[] = new Tag($this, trim($tagString));
            }
        }

        return $tags;
    }
1168548
public function getPrivateTagsList()
    {
        $config = SiteConfig::current_site_config();
        //Filter out global excluded tags and non configured Organisations
        $pri_tags = PrivateTag::get()->filter(['HailID:not' => json_decode($config->HailExcludePrivateTagsIDs), 'HailOrgID' => json_decode($config->HailOrgsIDs)]);

        return $pri_tags->sort(['HailOrgName ASC', 'Name ASC'])->map('HailID', 'FullName')->toArray();
    }
797026
private function getTitle2()
    {
        $title2 = [];

        $anime_info = $this->_parser->find('.js-scrollfix-bottom', 0);

        $title2['english'] = $this->getTitle3($anime_info, 'English');
        $title2['synonym'] = $this->getTitle3($anime_info, 'Synonyms');
        $title2['japanese'] = $this->getTitle3($anime_info, 'Japanese');

        return $title2;
    }
90042
public function allTags()
    {
        $tags = [];

        if (app()->getLocale() !== config('cms.default-language', 'en')) {
            $blogs = $this->translationRepo->getEntitiesByTypeAndLang(app()->getLocale(), 'Grafite\Cms\Models\Blog');
        } else {
            $blogs = $this->model->orderBy('published_at', 'desc')->get();
        }

        foreach ($blogs as $blog) {
            foreach (explode(',', $blog->tags) as $tag) {
                if ($tag !== '') {
                    array_push($tags, $tag);
                }
            }
        }

        return collect(array_unique($tags));
    }
513441
protected function extractTitles()
    {
        $result = [];
        $count = count($this->registries) - 1;
        for ($lot_id = 1; $lot_id < $count; $lot_id++) {
            $buffer = [];

            foreach ($this->registries[$lot_id][1] as $registry) {
                switch ($registry->getType()) {
                    case 'TITLE_T':
                        $data = [
                            'assignment' => $this->detectAssignment($registry)->id ?? null,
                            'our_number' => (int) $registry->our_number,
                            'value' => (float) ($registry->value / 100.0),
                            'tax' => (float) ($registry->tax / 100.0),
                            'due' => static::parseDate($registry->due),
                            'occurrence' => $this->occurrence($registry) ?? $registry->occurrence,
                        ];
                        $data['id'] = static::detectTitle($data);
                        break;

                    case 'TITLE_U':
                        $data = [
                            'value_received' => (float) ($registry->value_received / 100.0),
                            'occurrence_date' => static::parseDate($registry->occurrence_date),
                        ];
                        break;
                }

                $key = $registry->lot_registry;
                $buffer[$key] = array_merge($buffer[$key] ?? [], $data);
            }

            $result = array_merge($result, array_values($buffer));
        }

        return $result;
    }
134305
public function get_image_title()
	{
		if ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_DC_11, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}
		elseif ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_DC_10, 'title'))
		{
			return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
		}

		return null;
	}
13073
public function getTitle()
    {
        $node = $this->html->findFirstTag('title');

        return $node ? trim($node->nodeValue) : null;
    }
1076155
public function toArray()
    {
        $result                 = parent::toArray();
        $result['title']        = $this->title;
        $result['description']  = $this->description;
        $result['musicUrl']     = $this->musicUrl;
        $result['hQMusicUrl']   = $this->hQMusicUrl;
        $result['thumbMediaId'] = $this->thumbMediaId;

        return $result;
    }
940335
public function getTagList()
    {
        $string = '';
        foreach ($this->PublicTags() as $t) {
            $string .= Convert::raw2url($t->Name) . ' ';
        }
        return trim($string);
    }
642722
public function getDisplayNameVariants(): array
    {
        $array[] = $this->user->username;
        if ($this->full_name !== null) {
            $full_name = new UserMetaFullName($this->full_name);
            if ($full_name->surname !== '' && $full_name->name !== ''){
                $array[] = $full_name->surname . ' ' . $full_name->name;
            }
            if ($full_name->name !== '' && $full_name->name !== null){
                $array[] = $full_name->name;
            }
        }
        return $array;
    }