public function findText()
    {
        $parameters = func_get_args();

        //set parameter values
        if (count($parameters) == 1) {
            $text = $parameters[0];
        } else if (count($parameters) == 2) {
            $WorkSheetName = $parameters[0];
            $text = $parameters[1];
        } else {
            throw new Exception('Invalid number of arguments');
        }
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . ((count($parameters) == 2) ? '/worksheets/' . $WorkSheetName : '') . '/findText?text=' . $text;
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');
        $json = json_decode($responseStream);
        return $json->TextItems->TextItemList;

    }
public function findText()
    {
        $parameters = func_get_args();

        //set parameter values
        if (count($parameters) == 1) {
            $text = $parameters[0];
        } else if (count($parameters) == 2) {
            $WorkSheetName = $parameters[0];
            $text = $parameters[1];
        } else {
            throw new Exception('Invalid number of arguments');
        }
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . ((count($parameters) == 2) ? '/worksheets/' . $WorkSheetName : '') . '/findText?text=' . $text;
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI, 'POST', '', '');
        $json = json_decode($responseStream);
        return $json->TextItems->TextItemList;

    }
public function findText ( ) { $ parameters = func_get_args ( ) ; //set parameter values if ( count ( $ parameters ) == 1 ) { $ text = $ parameters [ 0 ] ; } else if ( count ( $ parameters ) == 2 ) { $ WorkSheetName = $ parameters [ 0 ] ; $ text = $ parameters [ 1 ] ; } else { throw new Exception ( 'Invalid number of arguments' ) ; } $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . ( ( count ( $ parameters ) == 2 ) ? '/worksheets/' . $ WorkSheetName : '' ) . '/findText?text=' . $ text ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'POST' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; return $ json -> TextItems -> TextItemList ; }
Finds a speicif text from Excel document or a worksheet.

@param string $WorkSheetName Name of the sheet.
@param string $text Text to be find.

@return array
@throws Exception
Finds a speicif text from Excel document or a worksheet .