[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpbrain/inc/ -> class.uikb.inc.php (sommaire)

(pas de description)

Poids: 2070 lignes (75 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

uikb:: (20 méthodes):
  uikb()
  index()
  advsearch()
  view_article()
  mail_article()
  pop_search()
  edit_article()
  add_question()
  maintain_articles()
  maintain_questions()
  reload_page()
  download_file()
  build_categories()
  category_path()
  cat_data()
  show_basic_search()
  link()
  javascript_check_all()
  check_all()
  die_peacefully()


Classe: uikb  - X-Ref

Presentation layer of the Knowledge Base

Last Editor:    $Author: $
uikb($sitemgr=False, $link=False, $arguments=False)   X-Ref
Class constructor, instanciates bo class and auxiliary API classes, and reads confirmation messages

author: Alejandro Pedraza
param: bool    $sitemgr    True if accessed through sitemgr
param: string    $link        link prefix to use if accessed through sitemgr
param: array    $arguments    Arguments passed by sitemgr

index()   X-Ref
Shows main screen

author: Alejandro Pedraza
return: mixed    Returns output string if accessed through sitemgr

advsearch()   X-Ref
Shows advanced search form, that is posted to function index to handle the search

author: Alejandro Pedraza
return: mixed    Returns output string if accessed through sitemgr

view_article()   X-Ref
Shows article details

author: Alejandro Pedraza
return: mixed    Returns output string if accessed through sitemgr

mail_article()   X-Ref
Mails article

author: Alejandro Pedraza
return: mixed    When showing form, returns string output if acccess through sitemgr

pop_search()   X-Ref
Shows popup windows with articles table

author: Alejandro Pedraza
return: void

edit_article()   X-Ref
New articles (answering questions or just new) and edit existing articles

author: Alejandro Pedraza
return: void

add_question()   X-Ref
Adds question to knowledge base.

author: Alejandro Pedraza
return: mixed    When showing form, returns string output if acccess through sitemgr

maintain_articles()   X-Ref
Article maintenance view

author: Alejandro Pedraza
return: void

maintain_questions()   X-Ref
Question maintenance view

author: Alejandro Pedraza
return: mixed    When showing form, returns string output if acccess through sitemgr

reload_page($article_id, $message)   X-Ref
Auxiliary function that reloads the article view showing a confirmation message on top

author: Alejandro Pedraza
param: int        $article_id    Id of article to show
param: string    $message    Message to show
return: void

download_file()   X-Ref
Downloads file

author: Alejandro Pedraza
return: void

build_categories($parent_id, $num_main_categories)   X-Ref
Returns HTML string of categories menu

author: Alejandro Pedraza
param: int        $parent_id                id of parent category
param: int        $num_main_categories    Number of main categories
return: string                            HTML string of categories menu

category_path($category_id, $links = False)   X-Ref
Returns HTML string of categories from the topmost to the actual one

author: Alejandro Pedraza
param: int        $category_id    Id of current category
param: bool    $links            Whether to make categories clickable or not
return: string                    HTML string

cat_data($category_id)   X-Ref
Auxiliary function to category_path function

author: Alejandro Pedraza
param: int        $category_id
return: mixed    Array or 0

show_basic_search()   X-Ref
Shows basic search form

author: Alejandro Pedraza
return: string    Form to place inside other templatesA

link($args)   X-Ref
Shows link string. Necessary because might be different depending if entered through sitemgr or not

author: Alejandro Pedraza
param: string    $args    GET arguments to be appended to link
return: string            Link string

javascript_check_all()   X-Ref
Javascript code to check all check boxes in a table

author: Alejandro Pedraza
return: string    Code

check_all(which)   X-Ref
Pas de description

die_peacefully($error_msg)   X-Ref
To stop execution showing error message

author: Alejandro Pedraza
param: string    $error_msg    Error message to be translated and shown
return: void



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7