dokeos-metadata
[ class tree: dokeos-metadata ] [ index: dokeos-metadata ] [ all elements ]

Procedural File: md_phpdig.php

Source Location: /main/metadata/md_phpdig.php



Page Details:

Dokeos Metadata: PhpDig connection

If PhpDig 1.8.3 is installed in a Dokeos course site, then MD items can be indexed for search (via PhpDig's search screen search.php).

The functions below inject the words of metadata/indexabletext directly into PhpDig's tables. Affected tables:

keywords: key_id, twoletters, keyword (lowercase, accents removed)

sites: site_id, site_url (e.g. http://xx.yy.zz/), upddate, ...

spider: spider_id, site_id, upddate, num_words, first_words, path (e.g. uu/vv/ww/), file (e.g. index.php?sid=xxx), ...

engine: spider_id, key_id, weight

Most of the function code is a simplified version of real PhpDig code released under the GNU GPL V2, see www.phpdig.net.




Tags:

filesource:  Source Code for this file







LETTERS_WITH_ACCENTS [line 64]

LETTERS_WITH_ACCENTS = $letterswith

[ Top ]



MAX_WORDS_SIZE [line 52]

MAX_WORDS_SIZE = 50

[ Top ]



PHPDIG_ENCODING [line 50]

PHPDIG_ENCODING = 'iso-8859-1'

[ Top ]



SAME_WITHOUT_ACCENTS [line 65]

SAME_WITHOUT_ACCENTS = $letterswithout

[ Top ]



SMALL_WORDS_SIZE [line 51]

SMALL_WORDS_SIZE = 2

[ Top ]



SUMMARY_DISPLAY_LENGTH [line 49]

SUMMARY_DISPLAY_LENGTH = 700
Dokeos Metadata: PhpDig connection

If PhpDig 1.8.3 is installed in a Dokeos course site, then MD items can be indexed for search (via PhpDig's search screen search.php).

The functions below inject the words of metadata/indexabletext directly into PhpDig's tables. Affected tables:

keywords: key_id, twoletters, keyword (lowercase, accents removed)

sites: site_id, site_url (e.g. http://xx.yy.zz/), upddate, ...

spider: spider_id, site_id, upddate, num_words, first_words, path (e.g. uu/vv/ww/), file (e.g. index.php?sid=xxx), ...

engine: spider_id, key_id, weight

Most of the function code is a simplified version of real PhpDig code released under the GNU GPL V2, see www.phpdig.net.




Tags:

filesource:  Source Code for this file

[ Top ]



WORDS_CHARS_LATIN1 [line 53]

WORDS_CHARS_LATIN1 = '[:alnum:]ðþßµ'

[ Top ]




find_site [line 71]

void find_site( $url)



Parameters

   $url  
[ Top ]



get_first_words [line 170]

void get_first_words( $text, $path, $file)



Parameters

   $text  
   $path  
   $file  
[ Top ]



get_keywords [line 186]

void get_keywords( $text)



Parameters

   $text  
[ Top ]



index_words [line 124]

void index_words( $site_id, $path, $file, $first_words, $keywords)



Parameters

   $site_id  
   $path  
   $file  
   $first_words  
   $keywords  
[ Top ]



phpdigEpureText [line 196]

void phpdigEpureText( $text)



Parameters

   $text  
[ Top ]



phpdigStripAccents [line 216]

void phpdigStripAccents( $chaine)



Parameters

   $chaine  
[ Top ]



remove_engine_entries [line 95]

void remove_engine_entries( $url, $path, [ $file = ''])



Parameters

   $url  
   $path  
   $file  
[ Top ]



Documentation generated on Thu, 12 Jun 2008 14:05:57 -0500 by phpDocumentor 1.4.1