Get anime/manga character va id.

@param \simplehtmldom_1_5\simple_html_dom $va_name_area

@return string
420115
private function getCharacterVaId($va_name_area)
    {
        $va_id = $va_name_area->find('a', 0)->href;
        $va_id = explode('/', $va_id);

        return $va_id[4];
    }
245862
private function getReviewEpisode($top_area)
    {
        $episode = $top_area->find('div div', 1)->plaintext;
        $episode = str_replace(['episodes seen', 'chapters read'], '', $episode);

        return trim($episode);
    }
272474
public function get_area_title() {

        if ($this->get_context()->contextlevel == CONTEXT_SYSTEM) {
            return '';

        } else if ($this->get_context()->contextlevel >= CONTEXT_COURSE) {
            $this->ensure_isset(array('context', 'component', 'area'));
            $areas = $this->get_available_areas();
            if (array_key_exists($this->get_area(), $areas)) {
                return $areas[$this->get_area()];
            } else {
                debugging('Unknown area!');
                return '???';
            }

        } else {
            throw new coding_exception('Unsupported context level');
        }
    }
1313193
private function getAllianceIntelView(Collection $universe_name, int $character_id) : string
    {
        if ($universe_name->has('unknown_id'))
            return $this->getUnknownIntelView($universe_name);

        if (! $universe_name->has('alliance_id'))
            return '';

        $alliance = $universe_name['alliance_id'];

        return view('web::partials.alliance', compact('alliance', 'character_id'));
    }
854565
protected function elementId(string $var_name = ''): string
    {
        if ($this->action) {
            return $this->s::restActionFormElementId($this->action, $var_name);
        } elseif ($this->cfg->Widget) {
            return $this->cfg->Widget->get_field_id($var_name);
        }
        return $this->cfg->slug.($var_name ? '-'.$this->c::nameToSlug($var_name) : '');
    }
29005
public function areaMapToJson(){
        $returnValue = null;

        // Get the stored area mapping
        $mapping = $this->getMapping('area');

        if(count($mapping)){
            $returnValue = Array();
            $returnValue['identifier'] = $this->getIdentifier();
            $returnValue['defaultValue'] = $this->mappingDefaultValue;
            if($this->hasAttribute('areaMapping')){
                $returnValue = array_merge($returnValue, $this->getAttributeValue('areaMapping'));
            }
            $mappingValue = Array();

            // If a mapping has been defined
            if(!empty($mapping)){
                foreach($mapping as $mapKey => $mappedValue){
                    $areaMapEntryJSON = Array();
                    $areaMapEntryJSON['value'] = (float) $mappedValue["mappedValue"];
                    $areaMapEntryJSON['key'] = taoQTI_models_classes_Matching_VariableFactory::createJSONShapeFromQTIData($mappedValue);
                    array_push($mappingValue, (object) $areaMapEntryJSON);
                }
                $returnValue['value'] = $mappingValue;
            }

            $returnValue = (object) $returnValue;
        }

        return $returnValue;
    }
960108
private function getAnimeId($name_area)
    {
        $anime_id = $name_area->find('p a', 0)->href;
        $anime_id = explode('/', $anime_id);

        return $anime_id[4];
    }
402289
public function get_name() {
        $identifier = 'cachedef_'.clean_param($this->area, PARAM_STRINGID);
        $component = $this->component;
        if ($component === 'core') {
            $component = 'cache';
        }
        return new lang_string($identifier, $component);
    }
974902
private function getAnimeProducerId($each_producer)
    {
        $prod_id = $each_producer->href;
        $prod_id = explode('/', $prod_id);
        if ($this->_type == 'anime') {
            return $prod_id[3];
        }

        return $prod_id[4];
    }
786949
private function getAllInfo()
    {
        $data = [];
        $review_area = $this->_parser->find('.borderDark', 0);

        $top_area = $review_area->find('.spaceit', 0);
        $bottom_area = $top_area->next_sibling();

        $data['id'] = $this->getId();
        $data['source'] = $this->getReviewSource($top_area, $bottom_area);
        $data['username'] = $this->getReviewUser($top_area);
        $data['image'] = $this->getReviewImage($top_area);
        $data['helpful'] = $this->getReviewHelpful($top_area);
        $data['date'] = $this->getReviewDate($top_area);
        if ($this->_type == 'anime') {
            $data['episode'] = $this->getReviewEpisode($top_area);
        } else {
            $data['chapter'] = $this->getReviewEpisode($top_area);
        }
        $data['score'] = $this->getReviewScore($bottom_area);
        $data['review'] = $this->getReviewText($bottom_area);

        return $data;
    }
1170167
private function getVa()
    {
        $va = [];
        $va_index = 0;
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();
        $va_area = $html->find('div[class=normal_header]', 1)->next_sibling();
        if ($va_area->tag == 'table') {
            while (true) {
                $va_name_area = $va_area->find('td', 1);
                $va[$va_index]['id'] = $this->getVaId($va_name_area);
                $va[$va_index]['name'] = $this->getVaName($va_name_area);
                $va[$va_index]['role'] = $this->getVaRole($va_name_area);
                $va[$va_index]['image'] = $this->getVaImage($va_area);

                $va_area = $va_area->next_sibling();
                if ($va_area->tag != 'table') {
                    break;
                } else {
                    $va_index++;
                }
            }
        }

        return $va;
    }
915714
public function getPath(): string
    {

        $query = http_build_query(
            [
                'q'      => $this->query,
                'show'   => ($this->page !== 1) ? 50 * ($this->page - 1) : null,
                'letter' => $this->char,
            ]
        );

        return sprintf(
            'https://myanimelist.net/people.php?%s',
            $query
        );
    }
213617
private function getCharacterVaImage($each_va)
    {
        $va_image = $each_va->find('td', 1)->find('img', 0)->getAttribute('data-src');

        return Helper::imageUrlCleaner($va_image);
    }
856743
protected function getActiveTextarea(): string
    {
        return Html::activeTextarea($this->model, $this->attribute, $this->options);
    }
884662
private function getId($name_area)
    {
        $temp_id = $name_area->find('a', 0)->href;
        $temp_id = explode('=', $temp_id);

        return $temp_id[1];
    }
316526
public function getAllInfo()
    {
        $list = (new UserList($this->_user, $this->_type, 7))->getAllInfo();

        $cover = '';
        foreach ($list as $c) {
            if ($this->_type == 'anime') {
                $temp = str_replace(['{id}', '{url}'], [$c['anime_id'], $c['anime_image_path']], $this->_style);
            } else {
                $temp = str_replace(['{id}', '{url}'], [$c['manga_id'], $c['manga_image_path']], $this->_style);
            }
            $cover .= $temp."\n";
        }

        return $cover;
    }
506519
static public function area($name, $value=null, $settings=[])
    {
        $name || $name = 'row[area_id]';
        if (!isset($settings['modal_url'])) $settings['modal_url'] = Ioc::url('common/data/select/area');
        
        return static::select($name, $value, $settings);
    }