src/MalScraper/Model/General/PeopleModel.php
private function getVa()
    {
        $va = [];
        $va_index = 0;
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();
        $va_area = $html->find('.normal_header', 0)->next_sibling();
        if ($va_area->tag == 'table') {
            if ($va_area->find('tr')) {
                foreach ($va_area->find('tr') as $each_va) {

                    // anime
                    $anime_image_area = $each_va->find('td', 0);
                    $anime_area = $each_va->find('td', 1);

                    $va[$va_index]['anime']['image'] = $this->getAnimeImage($anime_image_area);
                    $va[$va_index]['anime']['id'] = $this->getAnimeId($anime_area);
                    $va[$va_index]['anime']['title'] = $this->getAnimeTitle($anime_area);

                    // character
                    $character_image_area = $each_va->find('td', 3);
                    $character_area = $each_va->find('td', 2);

                    $va[$va_index]['character']['image'] = $this->getAnimeImage($character_image_area);
                    $va[$va_index]['character']['id'] = $this->getAnimeId($character_area);
                    $va[$va_index]['character']['name'] = $this->getAnimeTitle($character_area);
                    $va[$va_index]['character']['role'] = $this->getAnimeRole($character_area);

                    $va_index++;
                }
            }
        }

        return $va;
    }
private function getVa()
    {
        $va = [];
        $va_index = 0;
        $html = $this->_parser->find('#content table tr', 0)->find('td', 0)->next_sibling();
        $va_area = $html->find('.normal_header', 0)->next_sibling();
        if ($va_area->tag == 'table') {
            if ($va_area->find('tr')) {
                foreach ($va_area->find('tr') as $each_va) {

                    // anime
                    $anime_image_area = $each_va->find('td', 0);
                    $anime_area = $each_va->find('td', 1);

                    $va[$va_index]['anime']['image'] = $this->getAnimeImage($anime_image_area);
                    $va[$va_index]['anime']['id'] = $this->getAnimeId($anime_area);
                    $va[$va_index]['anime']['title'] = $this->getAnimeTitle($anime_area);

                    // character
                    $character_image_area = $each_va->find('td', 3);
                    $character_area = $each_va->find('td', 2);

                    $va[$va_index]['character']['image'] = $this->getAnimeImage($character_image_area);
                    $va[$va_index]['character']['id'] = $this->getAnimeId($character_area);
                    $va[$va_index]['character']['name'] = $this->getAnimeTitle($character_area);
                    $va[$va_index]['character']['role'] = $this->getAnimeRole($character_area);

                    $va_index++;
                }
            }
        }

        return $va;
    }
private function getVa ( ) { $ va = [ ] ; $ va_index = 0 ; $ html = $ this -> _parser -> find ( '#content table tr' , 0 ) -> find ( 'td' , 0 ) -> next_sibling ( ) ; $ va_area = $ html -> find ( '.normal_header' , 0 ) -> next_sibling ( ) ; if ( $ va_area -> tag == 'table' ) { if ( $ va_area -> find ( 'tr' ) ) { foreach ( $ va_area -> find ( 'tr' ) as $ each_va ) { // anime $ anime_image_area = $ each_va -> find ( 'td' , 0 ) ; $ anime_area = $ each_va -> find ( 'td' , 1 ) ; $ va [ $ va_index ] [ 'anime' ] [ 'image' ] = $ this -> getAnimeImage ( $ anime_image_area ) ; $ va [ $ va_index ] [ 'anime' ] [ 'id' ] = $ this -> getAnimeId ( $ anime_area ) ; $ va [ $ va_index ] [ 'anime' ] [ 'title' ] = $ this -> getAnimeTitle ( $ anime_area ) ; // character $ character_image_area = $ each_va -> find ( 'td' , 3 ) ; $ character_area = $ each_va -> find ( 'td' , 2 ) ; $ va [ $ va_index ] [ 'character' ] [ 'image' ] = $ this -> getAnimeImage ( $ character_image_area ) ; $ va [ $ va_index ] [ 'character' ] [ 'id' ] = $ this -> getAnimeId ( $ character_area ) ; $ va [ $ va_index ] [ 'character' ] [ 'name' ] = $ this -> getAnimeTitle ( $ character_area ) ; $ va [ $ va_index ] [ 'character' ] [ 'role' ] = $ this -> getAnimeRole ( $ character_area ) ; $ va_index ++ ; } } } return $ va ; }
Get people voice actor list.

@return array
Get people voice actor list .