Ejemplo n.º 1
0
 /**
  * Set-ups the any indexing plugins associated with this page
  * processor
  *
  * @param array $plugins an array of indexing plugins which might
  *     do further processing on the data handles by this page
  *     processor
  * @param int $max_description_len maximal length of a page summary
  * @param int $summarizer_option CRAWL_CONSTANT specifying what kind
  *      of summarizer to use self::BASIC_SUMMARIZER or
  *      self::CENTROID_SUMMARIZER
  */
 function __construct($plugins = array(), $max_description_len = NULL, $summarizer_option = self::BASIC_SUMMARIZER)
 {
     $this->plugin_instances = $plugins;
     $this->summarizer_option = $summarizer_option;
     if ($max_description_len != NULL) {
         self::$max_description_len = $max_description_len;
     } else {
         self::$max_description_len = MAX_DESCRIPTION_LEN;
     }
 }