Get anime id.

@param \simplehtmldom_1_5\simple_html_dom $name_area

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

        return $anime_id[4];
    }
975985
private function getAnimeLicensor($each_anime)
    {
        if ($this->_type == 'anime') {
            $licensor = $each_anime->find('div[class="synopsis js-synopsis"] .licensors', 0)->getAttribute('data-licensors');
            $licensor = explode(',', $licensor);

            return array_filter($licensor);
        } else {
            $serialization = $each_anime->find('div[class="synopsis js-synopsis"] .serialization a', 0);

            return $serialization ? $serialization->plaintext : '';
        }
    }
1286437
private function getId($name_area)
    {
        $id = $name_area->find('a', 0)->href;
        $id = explode('/', $id);

        return $id[4];
    }
1132924
protected function _extractId()
    {
		list(, $className) = namespaceSplit(get_class($this));
		$id = explode('Layout', $className)[0];

		if (!$className || !$id) {
			user_error(__d('wasabi_cms', 'The layout Class {0} has an invalid name. The name has to end with "Layout".', $className));
		}

		return $id;
	}
469465
private function getEpisodeTitle($link_area, $key)
    {
        $title = $link_area->find('span.title', 0)->plaintext;
        $title = explode("\n", $title);
        $title = $key == 0 ? str_replace('Episode ', '', $title[$key]) : $title[$key];

        return trim($title);
    }
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');
        }
    }
808142
private function getVa($char_va_area)
    {
        $va = [];
        $va_index = 0;
        $char_va_area = $char_va_area->find('table', 0);
        foreach ($char_va_area->find('tr') as $each_va) {
            $va_name_area = $each_va->find('td', 0);

            $va[$va_index]['id'] = $this->getCharacterVaId($va_name_area);
            $va[$va_index]['name'] = $this->getCharacterVaName($va_name_area);
            $va[$va_index]['role'] = $this->getCharacterVaRole($va_name_area);
            $va[$va_index]['image'] = $this->getCharacterVaImage($each_va);

            $va_index++;
        }

        return $va;
    }
1058062
private function getType($name_area)
    {
        $type = $name_area->find('a', 0)->href;
        $type = explode('.php', $type);

        return substr($type[0], 1);
    }
1228488
public function getImage(string $name)
    {
        $contentArea = $this->content->getImage($name);

        if ($contentArea) {
            return $contentArea->image;
        }

        return null;
    }
1259272
public function attribute( $name )
    {
        if ( !$this->hasAttribute( $name ) )
        {
            eZDebug::writeError( "Attribute '$name' does not exist", __METHOD__ );
            return null;
        }

        if ( $name == 'tags' )
            return $this->tags();
        else if ( $name == 'tags_count' )
            return $this->tagsCount();
        else if ( $name == 'permission_array' )
            return $this->getPermissionArray();
        else if ( $name == 'tag_ids' )
            return $this->IDArray;
        else if ( $name == 'keywords' )
            return $this->KeywordArray;
        else if ( $name == 'parent_ids' )
            return $this->ParentArray;
        else if ( $name == 'locales' )
            return $this->LocaleArray;
        else if ( $name == 'id_string' )
            return $this->idString();
        else if ( $name == 'keyword_string' )
            return $this->keywordString();
        else if ( $name == 'meta_keyword_string' )
            return $this->metaKeywordString();
        else if ( $name == 'parent_string' )
            return $this->parentString();
        else if ( $name == 'locale_string' )
            return $this->localeString();

        return null;
    }
1003265
private function getHistoryId($history_data_area)
    {
        $id = $history_data_area->find('a', 0)->href;
        $id = explode('/', $id);

        return $id[4];
    }
969400
private function getVaId($va_name_area)
    {
        $va_id = $va_name_area->find('a', 0)->href;
        $parsed_va_id = explode('/', $va_id);

        return $parsed_va_id[4];
    }
39916
final protected function getScript($area, $data_only = false)
    {
        $files = $this->page->js->getFiles($area);

        if ($data_only) {
            return $files;
        }

        // Init output var
        $html = '';

        // Create files
        foreach ($files as $file) {

            // Create script html object
            $html .= PHP_EOL . '<script src="' . $file . '"></script>';
        }

        return $html;
    }
645049
protected function getTextareaTag()
    {
        // textarea tags cannot be self-closing when using HTML parser on XHTML
        $value = $this->value === null ? '' : $this->value;

        // escape value for display because we actually want to show entities
        // for editing
        $value = htmlspecialchars($value);

        $textarea_tag = new SwatHtmlTag('textarea');
        $textarea_tag->name = $this->id;
        $textarea_tag->id = $this->id;
        $textarea_tag->class = $this->getCSSClassString();
        // NOTE: The attributes rows and cols are required in
        //       a textarea for XHTML strict.
        $textarea_tag->rows = $this->rows;
        $textarea_tag->cols = $this->cols;
        $textarea_tag->setContent($value, 'text/xml');
        $textarea_tag->accesskey = $this->access_key;
        $textarea_tag->tabindex = $this->tab_index;

        if ($this->read_only) {
            $textarea_tag->readonly = 'readonly';
        }

        if (!$this->isSensitive()) {
            $textarea_tag->disabled = 'disabled';
        }

        if ($this->placeholder != '') {
            $textarea_tag->placeholder = $this->placeholder;
        }

        return $textarea_tag;
    }
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];
    }
171903
public function getHtml(string $name, string $default = '') : string
    {
        $contentArea = $this->content->getHtml($name);

        return $contentArea ? $contentArea->html->asString() : $default;
    }
1139585
public function htmlId($name = '', $splitor = '-') {
        if (!isset($this->_data['htmlId'])) {
            $this->_data['htmlId'] = empty($name) ? strtolower(preg_replace("/(.)([A-Z])/", "$1{$splitor}$2", $this->shortClassName())) : strtolower(preg_replace("/(.)([A-Z])/", "$1{$splitor}$2", $name));
        }
        return $this->_data['htmlId'];
    }