blueshoes php application framework and cms            plugins_indexserver
[ class tree: plugins_indexserver ] [ index: plugins_indexserver ] [ all elements ]

Class: Bs_Is_ConverterHtml

Source Location: /plugins/indexserver/Bs_Is_ConverterHtml.class.php

Class Overview

Bs_Object
   |
   --Bs_Is_ConverterHtml

dependencies: Bs_HtmlInfo


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/09/03 11:06:15 $

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 19]
dependencies: Bs_HtmlInfo



Tags:

since:  bs4.3
version:  4.3.$Revision: 1.3 $ $Date: 2003/09/03 11:06:15 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$Bs_HtmlInfo =

[line 27]

instance of Bs_HtmlInfo, gets set in the constructor.



Tags:

access:  public

Type:   object


[ Top ]

$indexWeights = array(
      'title'       => 100, 
      'description' => 60, 
      'keywords'    => 20, 
      'links'       => 100, 
      'h1'          => 80, 
      'h2'          => 70, 
      'h3'          => 60, 
      'h4'          => 50, 
      'h5'          => 40, 
      'h6'          => 30, 
      'h7'          => 20, 
      'h8'          => 10, 
      'b'           => 10,       'i'           => 10, 
      'u'           => 10, 
      'body'        => 5, 
   )

[line 38]

specifies how much weight each part of a web page has.

'links' means links back to this page; the part in the <a></a> tags is used. numbers go from 1 to 100. the default values make sense.




Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor Bs_Is_ConverterHtml [line 61]

Bs_Is_ConverterHtml Bs_Is_ConverterHtml( )

constructor.



[ Top ]

method streamToArray [line 78]

array streamToArray( string $fileFullPath)

converts the html specified to an indexable array with plaintext parts.

the returned array is a hash with the keys 'values' and 'weights', both themselves are hashes with the fields.




Tags:

return:  (hash)
see:  $this->stringToArray()
access:  public


Parameters:

string   $fileFullPath   (stream)

[ Top ]

method stringToArray [line 97]

array stringToArray( string $string)

converts the given html string into an indexable array with plaintext parts.

returns the same as $this->streamToArray().




Tags:

return:  (hash)
see:  $this->streamToArray()
access:  public


Parameters:

string   $string  

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:11:24 +0100 by phpDocumentor 1.2.3