src/MalScraper/Model/User/HistoryModel.php
private function getAllInfo()
    {
        $data = [];
        $history_area = $this->_parser->find('table', 0);
        if ($history_area) {
            foreach ($history_area->find('tr') as $history) {
                if ($history->find('td', 0)->class != 'borderClass') {
                    continue;
                }
                $h_temp = [];
                $name_area = $history->find('td', 0);

                $h_temp['id'] = $this->getId($name_area);
                $h_temp['title'] = $this->getTitle($name_area);
                $h_temp['type'] = $this->getType($name_area);
                $h_temp['progress'] = $this->getProgress($name_area);
                $h_temp['date'] = $this->getDate($history);

                $data[] = $h_temp;
            }
        }

        return $data;
    }
private function getAllInfo()
    {
        $data = [];
        $history_area = $this->_parser->find('table', 0);
        if ($history_area) {
            foreach ($history_area->find('tr') as $history) {
                if ($history->find('td', 0)->class != 'borderClass') {
                    continue;
                }
                $h_temp = [];
                $name_area = $history->find('td', 0);

                $h_temp['id'] = $this->getId($name_area);
                $h_temp['title'] = $this->getTitle($name_area);
                $h_temp['type'] = $this->getType($name_area);
                $h_temp['progress'] = $this->getProgress($name_area);
                $h_temp['date'] = $this->getDate($history);

                $data[] = $h_temp;
            }
        }

        return $data;
    }
private function getAllInfo ( ) { $ data = [ ] ; $ history_area = $ this -> _parser -> find ( 'table' , 0 ) ; if ( $ history_area ) { foreach ( $ history_area -> find ( 'tr' ) as $ history ) { if ( $ history -> find ( 'td' , 0 ) -> class != 'borderClass' ) { continue ; } $ h_temp = [ ] ; $ name_area = $ history -> find ( 'td' , 0 ) ; $ h_temp [ 'id' ] = $ this -> getId ( $ name_area ) ; $ h_temp [ 'title' ] = $ this -> getTitle ( $ name_area ) ; $ h_temp [ 'type' ] = $ this -> getType ( $ name_area ) ; $ h_temp [ 'progress' ] = $ this -> getProgress ( $ name_area ) ; $ h_temp [ 'date' ] = $ this -> getDate ( $ history ) ; $ data [ ] = $ h_temp ; } } return $ data ; }
Get user history list.

@return array
Get user history list .