public function getStats(array $options = array())
    {
        $resolver = new OptionsResolver();
        $resolver
            ->setDefaults(array(
                'includeTextInShapes' => 'true',
            ))
            ->setDefined(array(
                'includeFootnotes', 'includeComments',
            ))
        ;
        $options = $resolver->resolve($options);

        //build URI to get document statistics including resolved parameters
        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/statistics?' . http_build_query($options);
        
        AsposeApp::getLogger()->info('WordsDocument getStats call will be made', array(
            'call-uri' => $strURI,
        ));

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            return $json->StatData;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function getStats(array $options = array())
    {
        $resolver = new OptionsResolver();
        $resolver
            ->setDefaults(array(
                'includeTextInShapes' => 'true',
            ))
            ->setDefined(array(
                'includeFootnotes', 'includeComments',
            ))
        ;
        $options = $resolver->resolve($options);

        //build URI to get document statistics including resolved parameters
        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/statistics?' . http_build_query($options);
        
        AsposeApp::getLogger()->info('WordsDocument getStats call will be made', array(
            'call-uri' => $strURI,
        ));

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            return $json->StatData;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function getStats ( array $ options = array ( ) ) { $ resolver = new OptionsResolver ( ) ; $ resolver -> setDefaults ( array ( 'includeTextInShapes' => 'true' , ) ) -> setDefined ( array ( 'includeFootnotes' , 'includeComments' , ) ) ; $ options = $ resolver -> resolve ( $ options ) ; //build URI to get document statistics including resolved parameters $ strURI = Product :: $ baseProductUri . '/words/' . $ this -> getFileName ( ) . '/statistics?' . http_build_query ( $ options ) ; AsposeApp :: getLogger ( ) -> info ( 'WordsDocument getStats call will be made' , array ( 'call-uri' => $ strURI , ) ) ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) { return $ json -> StatData ; } AsposeApp :: getLogger ( ) -> warning ( 'Error occured, http 200 code was not found.' , array ( 'json-code' => $ json -> Code , ) ) ; return false ; }
Get Document's stats. Add 'includeTextInShapes' or 'includeFootnotes' booleans to determine or these
words should be added to the word count.

Make sure the boolean options are strings, (e.g. true should be 'true').

@link http://www.aspose.com/docs/display/wordscloud/statistics

@param array $options
@return null|object
@throws Exception
Get Document s stats . Add includeTextInShapes or includeFootnotes booleans to determine or these words should be added to the word count .