[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1181 lignes (37 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
sokb:: (38 méthodes):
sokb()
search_articles()
adv_search_articles()
results_to_array()
update_keywords()
unanswered_questions()
save_article()
change_articles_owner()
delete_article()
delete_question()
get_latest_articles()
get_article()
get_articles_ids()
register_view()
get_comments()
delete_comments()
delete_ratings()
delete_files()
delete_urls()
get_related_articles()
user_has_voted()
add_comment()
add_link()
publish_article()
publish_question()
publish_comment()
delete_comment()
delete_link()
add_vote()
add_rating_user()
add_file()
exist_articleID()
owners_list()
add_related()
delete_related()
delete_search()
add_question()
get_question()
sokb() X-Ref |
Class constructor author: Alejandro Pedraza |
search_articles($owners, $categories, $start, $upper_limit = '', $sort, $order, $publish_filter = False, $query) X-Ref |
Returns array of articles author: Alejandro Pedraza param: array $owners Users ids accessible by current user param: array $categories Categories ids param: int $start For pagination param: int $upper_limit For pagination param: srting $sort Sorting direction: ASC | DESC param: string $order Sorting field name param: mixed $publish_filter To filter pusblished or unpublished entries param: string $query Search string return: array Articles |
adv_search_articles($owners, $cats_ids, $ocurrences, $pub_date, $start, $num_res, $all_words, $phrase, $one_word, $without_words, $cat, $include_subs) X-Ref |
Returns results of advanced search author: Alejandro Pedraza param: array $owners User ids accessible by current user param: array $cats_ids Categories filtering param: string $ocurrences Field name where to search param: string $pub_date Articles from last 3 or 6 months, or last year param: int $start For pagination param: int $num_res For pagination param: string $all_words 'with all the words' filtering param: string $phrase 'exact phrase' filtering param: string $one_word 'with at least one of the words' filtering param: string $without_words 'without the words' filtering param: int $cat Don't know param: bool $include_subs Include subcategories when filtering by categories. Seems to not being working return: array Articles |
results_to_array($fields) X-Ref |
Fetches results from database and returns array of articles author: Alejandro Pedraza param: array $fields Which fields to fetch return: array Articles |
update_keywords($art_id, $word, $upgrade_key) X-Ref |
Upgrades phpgw_kb_search table given user input author: Alejandro Pedraza param: int $art_id Article ID param: string $word Keyword param: mixed $upgrade_key Whether to give more or less score to $word return: void |
unanswered_questions($owners, $categories, $start, $upper_limit='', $sort, $order, $publish_filter=False, $query) X-Ref |
Returns unanswered questions author: Alejandro Pedraza param: array $owners User ids accessible by current user param: array $categories Categories ids param: int $start For pagination param: int $upper_limit For pagination param: srting $sort Sorting direction: ASC | DESC param: string $order Sorting field name param: mixed $publish_filter To filter pusblished or unpublished entries param: string $query Search string return: array Questions |
save_article($contents, $is_new, $publish = False) X-Ref |
Saves a new or edited article author: Alejandro Pedraza param: array $contents article contents param: bool $is_new True if it's a new article, False if its an edition param: bool $publish True if the article is to be published without revision return: mixed article id or False if failure |
change_articles_owner($owner, $new_owner) X-Ref |
Changes article owner when user is deleted author: Alejandro Pedraza param: int $owner actual owner param: int $new_owner new owner return: void |
delete_article($art_id) X-Ref |
Deletes article author: Alejandro Pedraza param: int $art_id article id return: bool 1 on success, 0 on failure |
delete_question($q_id) X-Ref |
Deletes question author: Alejandro Pedraza param: int $q_id Question id return: bool 1 on success, 0 on failure |
get_latest_articles($parent_cat) X-Ref |
Returns latest articles entered author: Alejandro Pedraza param: int $parent_cat Category id return: array Articles |
get_article($art_id) X-Ref |
Returns article author: Alejandro Pedraza param: int $art_id article id return: array Article |
get_articles_ids($owner) X-Ref |
Returns all articles ids from a given owner author: Alejandro Pedraza param: int $owner owner id return: array Articles ids |
register_view($art_id, $current_count) X-Ref |
Increments the view count of a published article author: Alejandro Pedraza param: int $art_id article id param: int $current_count current view count return: void |
get_comments($art_id, $limit) X-Ref |
Returns article's comments author: Alejandro Pedraza param: int $art_id article id param: int $limit Number of comments to return return: array Comments |
delete_comments($art_id) X-Ref |
Delete article's comments author: Alejandro Pedraza param: int $art_id article id return: void |
delete_ratings($art_id) X-Ref |
Delete article's ratings author: Alejandro Pedraza param: int $art_id article id return: void |
delete_files($art_id, $file_to_erase = false) X-Ref |
Delete article's file entries in phpgw_kb_files author: Alejandro Pedraza param: int $art_id article id param: string $file_to_erase File name return: bool 1 on success, 0 on failure |
delete_urls($art_id) X-Ref |
Delete article's urls author: Alejandro Pedraza param: int $art_id article id return: void |
get_related_articles($art_id, $owners) X-Ref |
Returns an article related comments author: Alejandro Pedraza param: int $art_id Article id param: array $owners Accessible owners to current user return: array IDs and titles of articles |
user_has_voted($art_id) X-Ref |
Tells if the current user has already rated the article author: Alejandro Pedraza param: int $art_id article id return: bool 1 if he has, 0 if not |
add_comment($comment, $art_id, $publish) X-Ref |
Stores new comment author: Alejandro Pedraza param: string $comment comment text param: int $art_id article id param: bool $publish True if comment is to be published, False if not return: bool 1 on success, 0 on failure |
add_link($url, $title, $art_id) X-Ref |
Adds link to article author: Alejandro Pedraza param: string $url Url param: string $title Url title param: int $art_id article id return: bool 1 on success, 0 on failure |
publish_article($art_id) X-Ref |
Publishes article, and resets creation and modification date author: Alejandro Pedraza param: int $art_id article id return: int Numbers of lines affected (should be 1, if not there's an error) |
publish_question($q_id) X-Ref |
Publishes question author: Alejandro Pedraza param: int $q_id Question id return: int Numbers of lines affected (should be 1, if not there's an error) |
publish_comment($art_id, $comment_id) X-Ref |
Publishes article comment author: Alejandro Pedraza param: int $art_id Article ID param: int $comment_id Comment ID return: int Numbers of lines affected (should be 1, if not there's an error) |
delete_comment($art_id, $comment_id) X-Ref |
Deletes article comment author: Alejandro Pedraza param: int $art_id Article ID param: int $comment_id Comment ID return: int Numbers of lines affected (should be 1, if not there's an error) |
delete_link($art_id, $delete_link) X-Ref |
Deletes article comment author: Alejandro Pedraza param: int $art_id Article ID param: int $delete_link Link ID return: bool 1 on success, 0 on failure |
add_vote($art_id, $rating, $current_rating) X-Ref |
Increments vote_x in table author: Alejandro Pedraza param: int $art_id Article id param: int $rating Rating between 1 and 5 param: int $current_rating Number of current votes in that rating return: bool 1 on success, 0 on failure |
add_rating_user($art_id) X-Ref |
Registers that actual user has voted this article author: Alejandro Pedraza param: int $art_id article id return: bool 1 on success, 0 on failure |
add_file($article_id, $file_name) X-Ref |
Register file upload in the article's database record author: Alejandro Pedraza param: int $article_id Article id param: string $file_name File name return: bool 1 on success, 0 on failure |
exist_articleID($article_id) X-Ref |
Checks if there is already an article in the db with the given ID author: Alejandro Pedraza param: int $art_id article id return: bool 1 if there is one, 0 if not |
owners_list($articles) X-Ref |
Returns ids of owners of articles author: Alejandro Pedraza param: array $articles Ids of articles return: array Article ids and owners ids |
add_related($art_id, $articles) X-Ref |
Adds related article to article author: Alejandro Pedraza param: int $art_id Article id param: array $articles Articles id to relate to $art_id return: bool 1 on success, 0 on failure |
delete_related($art_id, $related_id, $all = False) X-Ref |
Deletes related article to article author: Alejandro Pedraza param: int $art_id Article id param: int $related_id Article id to delete return: void |
delete_search($art_id) X-Ref |
Deletes entry in keywords table author: Alejandro Pedraza param: int $art_id Article id return: void |
add_question($data, $publish) X-Ref |
Adds question to database author: Alejandro Pedraza param: array $data Question data param: bool $publish Whether to publish the question or not return: int Numbers of lines affected (should be 1, if not there's an error) |
get_question($q_id) X-Ref |
Returns question author: Alejandro Pedraza param: int $q_id Question id return: array Question |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |