xref.php File Reference

Go to the source code of this file.

Variables

 $_ARR_QPARAMS = explode("/", $_SERVER["QUERY_STRING"])
 This file is used to jump directly (cross reference) to a certain section of a certain book.
 $mode = $_ARR_QPARAMS[0]
 $mode = $_ARR_QPARAMS[0]
 $book_id = $_ARR_QPARAMS[1]
 $node_id = (isset($_ARR_QPARAMS[2]) ? $_ARR_QPARAMS[2] : $book_id)
 $lng = (isset($_ARR_QPARAMS[3]) ? $_ARR_QPARAMS[3] : '')
 $event_args = "book_id=$book_id;node_id=$node_id;lng=$lng;mode=$mode"
 $strEvent = "event=main.xref($event_args)"
 $action = ($mode=='view' ? 'index' : 'edit.php')


Variable Documentation

$_ARR_QPARAMS = explode("/", $_SERVER["QUERY_STRING"])

This file is used to jump directly (cross reference) to a certain section of a certain book.

It is called with the mode, id of the book, section and language as parameters in the query string, like this:

xref.php?mode/book_id/node_id/lng

All the parts are optional and can be ommitted, like this: xref.php, xref.php?, xref.php?/, xref.php?/book_id, xref.php?admin/book_id, xref.php?edit/book_id/node_id, xref.php?approve/book_id//lng, etc.

'mode can have the values 'view', 'edit', 'approve', 'admin', with the default value being 'view'.

It opens first the application as usually, by including index.php, then redirects it automatically to the specified mode, book and section, by calling GoTo(). The second parameter of GoTo() tells it to open 'index.php' (or 'edit.php') next, instead of 'xref.php' (this file). get the variables in the query string (the part of url after the question mark (?) )

Definition at line 48 of file xref.php.

$mode = $_ARR_QPARAMS[0]

Definition at line 49 of file xref.php.

Referenced by edit_content::add_tab_items(), edit_content::error_on_save(), get_node_content(), get_node_state(), edit_content::on_save(), edit_content::on_set_mode(), docbook::on_set_mode(), main::on_xref(), docbook::onParse(), userEdit::onRender(), edit_content::onRender(), edit::onRender(), approve::onRender(), putback_cdata(), and set_node_lock().

$mode = $_ARR_QPARAMS[0]

Definition at line 62 of file xref.php.

$book_id = $_ARR_QPARAMS[1]

Definition at line 65 of file xref.php.

Referenced by books::add_book_list_rs(), books::add_book_title(), edit_menu::add_books_rs(), uEdit::add_edit_rights(), revisions::add_file_revision(), modified_nodes::add_has_accr(), modified_nodes::add_is_admin(), book_list::add_recordsets(), user_data::add_rs_books_admin(), uEdit::add_rs_langs(), admin::add_rs_modified_nodes(), uEdit::add_rs_nodes(), add_to_modified_nodes(), uList::add_users_rs(), change_id_validate(), changeid_movefolders(), changeid_setid(), changeid_updatecache(), main::check_book_id(), create_new_node(), delete_removefolders(), file_content_html(), file_content_xml(), modified_nodes::get_arr_books_accr(), get_arr_navigation(), tags::get_book_dir(), search::get_book_list(), tags::get_current_tag(), docbook::get_edit_rights(), tags::get_head_revision(), edit_media::get_media_path(), get_node_references(), uList::get_nr_of_recs(), search::get_query(), search::get_results_rs(), get_state_filename(), tags::get_svn_url(), revisions::get_svn_url(), main::init(), docbook::is_admin(), lock_index(), approve::msg_book_fixed_to_tag(), approve::non_recursive_commit(), uList::on_add_user(), main::on_approve(), main::on_book(), edit::on_change_id(), uList::on_delete(), book_list::on_delete(), main::on_docbook(), import_doc::on_import(), uEdit::on_save(), help::on_select(), books::on_select(), docbook::on_set_lng(), tags::on_set_tag(), admin::on_update_downloadables(), admin::on_update_search_index(), main::on_xref(), view::onParse(), books::onRender(), process_index(), approve::recursive_commit(), approve::recursive_revert(), remove_from_modified_nodes(), tags::set_revision(), view::setup_webnotes(), transform_index(), unlock_index(), update_cache(), update_navigation(), and update_subnodes_html().

$node_id = (isset($_ARR_QPARAMS[2]) ? $_ARR_QPARAMS[2] : $book_id)

Definition at line 68 of file xref.php.

Referenced by uEdit::add_rs_nodes(), get_node_references(), help::on_select(), main::on_xref(), and view::setup_webnotes().

$lng = (isset($_ARR_QPARAMS[3]) ? $_ARR_QPARAMS[3] : '')

Definition at line 71 of file xref.php.

Referenced by books::add_book_title(), revisions::add_file_revision(), modified_nodes::add_has_accr(), modified_nodes::add_is_admin(), book_list::add_recordsets(), uEdit::add_rs_langs(), admin::add_rs_modified_nodes(), uEdit::add_rs_nodes(), add_to_modified_nodes(), changeid_movefolders(), changeid_setid(), changeid_updatecache(), create_new_node(), delete_removefolders(), delete_removefolders_all_langs(), file_content_html(), file_content_xml(), get_arr_navigation(), tags::get_book_dir(), search::get_book_list(), tags::get_current_tag(), tags::get_head_revision(), addbook::get_initial_xml(), edit_media::get_media_path(), get_node_references(), search::get_query(), get_state_filename(), tags::get_svn_url(), revisions::get_svn_url(), modified_nodes::has_approve_right(), main::init(), modified_nodes::lang_match(), docbook::lang_match(), approve::msg_book_fixed_to_tag(), approve::non_recursive_commit(), main::on_approve(), main::on_book(), addbook::on_create(), book_list::on_delete(), main::on_docbook(), import_doc::on_import(), edit_content::on_save(), languages::on_select(), help::on_select(), docbook::on_set_lng(), tags::on_set_tag(), admin::on_update_downloadables(), admin::on_update_search_index(), main::on_xref(), view::onParse(), search::onParse(), languages::onParse(), languages::onRender(), process_index(), process_index_node(), approve::recursive_commit(), approve::recursive_revert(), remove_from_modified_nodes(), tags::set_revision(), view::setup_webnotes(), transform_index(), update_cache(), update_cache_files(), update_navigation(), update_navigation_all_langs(), update_subnodes_html(), and update_subnodes_html_all_langs().

$event_args = "book_id=$book_id;node_id=$node_id;lng=$lng;mode=$mode"

Definition at line 75 of file xref.php.

Referenced by addbook::get_initial_xml(), userEdit::on_add(), edit_menu::on_add_subitem(), edit::on_add_subnode(), tags::on_add_tag(), uList::on_add_user(), main::on_approve(), main::on_book(), edit::on_change_id(), user_data::on_change_passwd(), edit::on_change_title(), approve::on_commit(), addbook::on_create(), tags::on_del_tag(), userList::on_delete(), uList::on_delete(), import_doc::on_delete(), edit_media::on_delete(), book_list::on_delete(), main::on_docbook(), import_doc::on_import(), edit_menu::on_move_down(), edit::on_move_down(), edit_menu::on_move_up(), edit::on_move_up(), search::on_new_search(), userList::on_next(), uList::on_next(), search::on_next(), edit_media::on_rename(), approve::on_revert(), userEdit::on_save(), user_data::on_save(), uEdit::on_save(), edit_content::on_save(), main::on_search(), userList::on_select(), uList::on_select(), tabs1::on_select(), languages::on_select(), help::on_select(), edit_menu::on_select(), books::on_select(), tags::on_set_date(), revisions::on_set_date(), docbook::on_set_lng(), edit::on_set_lock(), approve::on_set_lock(), edit_content::on_set_mode(), docbook::on_set_mode(), docbook::on_set_node(), docbook::on_set_node_id(), tags::on_set_rev(), revisions::on_set_rev(), tags::on_set_tag(), revisions::on_set_tag(), book_list::on_set_visible(), edit_menu::on_update(), edit_media::on_upload(), and main::on_xref().

$strEvent = "event=main.xref($event_args)"

Definition at line 76 of file xref.php.

$action = ($mode=='view' ? 'index' : 'edit.php')

Definition at line 79 of file xref.php.


Generated on Fri Jul 25 20:47:13 2008 for DokBookWiki by  doxygen 1.5.3