public function getFirstSentence($number = 1, $i = null)
    {
        $wiki_api = sprintf($this->base_api . 'action=query&prop=extracts&exsentences=%d&explaintext=&exsectionformat=plain&pageids=%s', intval($number), $this->getId());
        $json_wapi = json_decode(file_get_contents($wiki_api), true);

        return $this->get_list_or_item($json_wapi['query']['pages'], 'extract', $i);
    }
public function getFirstSentence($number = 1, $i = null)
    {
        $wiki_api = sprintf($this->base_api . 'action=query&prop=extracts&exsentences=%d&explaintext=&exsectionformat=plain&pageids=%s', intval($number), $this->getId());
        $json_wapi = json_decode(file_get_contents($wiki_api), true);

        return $this->get_list_or_item($json_wapi['query']['pages'], 'extract', $i);
    }
public function getFirstSentence ( $ number = 1 , $ i = null ) { $ wiki_api = sprintf ( $ this -> base_api . 'action=query&prop=extracts&exsentences=%d&explaintext=&exsectionformat=plain&pageids=%s' , intval ( $ number ) , $ this -> getId ( ) ) ; $ json_wapi = json_decode ( file_get_contents ( $ wiki_api ) , true ) ; return $ this -> get_list_or_item ( $ json_wapi [ 'query' ] [ 'pages' ] , 'extract' , $ i ) ; }
Get the first sentence of the article
@param  integer $number
@param  integer  $i
@return mixed
Get the first sentence of the article