Services_Yahoo_JP
[ class tree: Services_Yahoo_JP ] [ index: Services_Yahoo_JP ] [ all elements ]

Class: Services_Yahoo_JP_MA_AbstractMA

Source Location: /Services_Yahoo_JP-0.1.1/Yahoo/JP/MA/AbstractMA.php

Class Overview


Abstract MA class


Author(s):

Version:

  • Release: 0.0.1

Copyright:

  • 2008 Tetsuya Nakase

Variables

Methods


Child classes:

Services_Yahoo_JP_MA_Parse
Services_Yahoo_JP_MA_parse

Inherited Variables

Inherited Methods


Class Details

[line 41]
Abstract MA class

This abstract class serves as the base class for all different types of categories that available through Services_Yahoo.



[ Top ]


Class Variables

$parameters = array('appid' => 'PEAR_Services_Y_JP')

[line 49]

parameter
  • Access: protected

Type:   array


[ Top ]



Method Detail

getParameter   [line 117]

string getParameter( string $name)

Returns an element from the parameters
  • Return: Value of the parameter
  • Access: protected

Parameters:

string   $name   —  Name of the element

[ Top ]

setFileter   [line 194]

void setFileter( string $filter)

Set the filter
  • Access: public

Parameters:

string   $filter   —  filter type

[ Top ]

setMAFileter   [line 206]

void setMAFileter( string $mafilter)

Set the MA filter
  • Access: public

Parameters:

string   $mafilter   —  ma filter type

[ Top ]

setMAResponse   [line 170]

void setMAResponse( string $maresponse)

Set the ma response field
  • Access: public

Parameters:

string   $maresponse   —  type of response

[ Top ]

setResponse   [line 158]

void setResponse( string $response)

Set the response field
  • Access: public

Parameters:

string   $response   —  field

[ Top ]

setResults   [line 145]

void setResults( string $results)

Set the type of result
  • Access: public

Parameters:

string   $results   —  type 'ma' or 'uniq'

[ Top ]

setSentence   [line 133]

void setSentence( string $sentence)

Set the Sentence
  • Access: public

Parameters:

string   $sentence   —  for Morphological Analysis

[ Top ]

setUniqByBaseform   [line 230]

void setUniqByBaseform( string $ubbf)

Set the Uniq_by_baseform
  • Access: public

Parameters:

string   $ubbf   —  uniq filter

[ Top ]

setUniqFileter   [line 218]

void setUniqFileter( string $uniqfilter)

Set the UNIQ filter
  • Access: public

Parameters:

string   $uniqfilter   —  uniq filter type

[ Top ]

setUniqResponse   [line 182]

void setUniqResponse( string $uniqresponse)

Set the uniq response field
  • Access: public

Parameters:

string   $uniqresponse   —  tyep of response

[ Top ]

submit   [line 61]

object Services_Yahoo_Response submit( )

Submits the MA

This method submits the MA and handles the response. It returns an instance of Services_Yahoo_Result which may be used to further make use of the result.

  • Return: MA result
  • Throws: Services_Yahoo_Exception
  • Access: public

[ Top ]

withAppID   [line 105]

void withAppID( string $id)

Set Application ID

An Application ID is a string that uniquely identifies your application. Think of it as like a User-Agent string. If you have multiple applications, you should use a different ID for each one. You can register your ID and make sure nobody is already using your ID on Yahoo's Application ID registration page.

The ID defaults to "PEAR_Services_Y_JP", but you are free to change it to whatever you want. Please note that the access to the Yahoo API is not limited via the Application ID but via the IP address of the host where the package is used.

  • Access: public

Parameters:

string   $id   —  Application ID

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:25:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.