Go to the source code of this file.
Namespaces | |
namespace | docbook |
Functions | |
lock_index () | |
unlock_index () | |
add_to_modified_nodes ($path=UNDEFINED) | |
Append the node path to the file 'modified_nodes.txt'. | |
remove_from_modified_nodes ($path=UNDEFINED, $recursive=false) | |
Remove the node path from the file 'modified_nodes.txt'. | |
add_subsections_rs () | |
add the recordset 'subsections' | |
process_index_node ($transformer, $node_path=UNDEFINED) | |
Applies the given transformer to index.xml, passing the node as a parameter, and returns the output. | |
transform_index ($action, $arr_params=array()) | |
Applies a transformation to index.xml and then writes the result back to index.xml. | |
update_navigation_all_langs ($node_path) | |
Update the files navigation.txt for all languages, for the given node. | |
update_navigation ($node_path, $lng) | |
Update the file navigation.txt for the given node and language. | |
update_subnodes_html_all_langs ($node_path=UNDEFINED) | |
Updates the cache files subnodes.html for the given node, for all its ancestors, and for all the languages. | |
update_subnodes_html ($node_path, $lng, $recursive='true') | |
Updates the cache files 'subnodes.html' for the given language, for the given node and all its ancestors, by applying 'update-subnodes.xsl' to index.xml. | |
updatenavig_moveup ($node_path) | |
updatenavig_movedown ($node_path) | |
update_cache_files_all_langs ($node_path) | |
update_cache_files ($node_path, $lng=UNDEFINED) | |
delete_removefolders_all_langs ($node_path) | |
delete_removefolders ($node_path, $lng) | |
create_new_node ($id, $title, $type) | |
create a new node and node files | |
change_id_validate ($new_id) | |
Returns true if the new id is OK, otherwise returns false. | |
changeid_movefolders ($node_path, $new_node_path) | |
move folders to the new node path, for all the languages | |
changeid_setid ($new_id) | |
set the new id in content.xml, for all the languages | |
changeid_updatecache ($node_path) | |
get_node_references () | |
Find the nodes that reference this one and return a list of them as a string (having a line for each node). |
lock_index | ( | ) |
Definition at line 38 of file edit_funcs.php.
References $book_id, and shell().
Referenced by edit::on_add_subnode(), edit::on_change_id(), edit::on_change_title(), edit::on_delete(), edit::on_move_down(), and edit::on_move_up().
unlock_index | ( | ) |
Definition at line 54 of file edit_funcs.php.
References $book_id, and shell().
Referenced by edit::on_add_subnode(), edit::on_change_id(), edit::on_change_title(), edit::on_delete(), edit::on_move_down(), and edit::on_move_up().
add_to_modified_nodes | ( | $ | path = UNDEFINED |
) |
Append the node path to the file 'modified_nodes.txt'.
Definition at line 62 of file edit_funcs.php.
References $book_id, $lng, $path, and shell().
Referenced by edit::on_change_title(), and edit_content::on_save().
remove_from_modified_nodes | ( | $ | path = UNDEFINED , |
|
$ | recursive = false | |||
) |
Remove the node path from the file 'modified_nodes.txt'.
Definition at line 89 of file edit_funcs.php.
References $book_id, $lng, $path, and shell().
Referenced by approve::non_recursive_commit(), approve::non_recursive_revert(), approve::recursive_commit(), and approve::recursive_revert().
add_subsections_rs | ( | ) |
add the recordset 'subsections'
Definition at line 118 of file edit_funcs.php.
References $path, and process_index_node().
Referenced by edit::onRender().
process_index_node | ( | $ | transformer, | |
$ | node_path = UNDEFINED | |||
) |
Applies the given transformer to index.xml, passing the node as a parameter, and returns the output.
Definition at line 139 of file edit_funcs.php.
References $lng, and process_index().
Referenced by add_subsections_rs(), html_to_xml(), edit::onParse(), text_to_xml(), and xml_to_xml().
transform_index | ( | $ | action, | |
$ | arr_params = array() | |||
) |
Applies a transformation to index.xml and then writes the result back to index.xml.
Definition at line 157 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), process_index(), shell(), T_(), and write_file().
Referenced by edit::on_add_subnode(), edit::on_change_id(), edit::on_delete(), edit::on_move_down(), and edit::on_move_up().
update_navigation_all_langs | ( | $ | node_path | ) |
Update the files navigation.txt for all languages, for the given node.
Definition at line 203 of file edit_funcs.php.
References $lng, and update_navigation().
Referenced by changeid_updatecache(), edit::on_delete(), update_cache_files_all_langs(), updatenavig_movedown(), and updatenavig_moveup().
update_navigation | ( | $ | node_path, | |
$ | lng | |||
) |
Update the file navigation.txt for the given node and language.
Definition at line 215 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), process_index(), and write_file().
Referenced by update_cache_files(), and update_navigation_all_langs().
update_subnodes_html_all_langs | ( | $ | node_path = UNDEFINED |
) |
Updates the cache files subnodes.html for the given node, for all its ancestors, and for all the languages.
Definition at line 239 of file edit_funcs.php.
References $lng, and update_subnodes_html().
Referenced by changeid_updatecache(), edit::on_delete(), edit::on_move_down(), edit::on_move_up(), and update_cache_files_all_langs().
update_subnodes_html | ( | $ | node_path, | |
$ | lng, | |||
$ | recursive = 'true' | |||
) |
Updates the cache files 'subnodes.html' for the given language, for the given node and all its ancestors, by applying 'update-subnodes.xsl' to index.xml.
If a third parameter is given and its value is not 'true', then only the subnodes of the given node are generated (without ascending to the ancestors).
Definition at line 264 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), process_index(), and write_file().
Referenced by edit_content::on_save(), update_cache_files(), and update_subnodes_html_all_langs().
updatenavig_moveup | ( | $ | node_path | ) |
Definition at line 302 of file edit_funcs.php.
References get_arr_navigation(), and update_navigation_all_langs().
Referenced by edit::on_move_up().
updatenavig_movedown | ( | $ | node_path | ) |
Definition at line 313 of file edit_funcs.php.
References get_arr_navigation(), and update_navigation_all_langs().
Referenced by edit::on_move_down().
update_cache_files_all_langs | ( | $ | node_path | ) |
Definition at line 324 of file edit_funcs.php.
References get_arr_navigation(), update_navigation_all_langs(), and update_subnodes_html_all_langs().
Referenced by edit::on_add_subnode().
update_cache_files | ( | $ | node_path, | |
$ | lng = UNDEFINED | |||
) |
Definition at line 335 of file edit_funcs.php.
References $lng, get_arr_navigation(), update_navigation(), and update_subnodes_html().
Referenced by approve::non_recursive_commit(), approve::non_recursive_revert(), edit::on_change_title(), and approve::recursive_commit().
delete_removefolders_all_langs | ( | $ | node_path | ) |
Definition at line 348 of file edit_funcs.php.
References $lng, and delete_removefolders().
Referenced by edit::on_delete().
delete_removefolders | ( | $ | node_path, | |
$ | lng | |||
) |
Definition at line 359 of file edit_funcs.php.
References $book_id, $lng, $path, book_fixed_to_tag(), and shell().
Referenced by delete_removefolders_all_langs().
create_new_node | ( | $ | id, | |
$ | title, | |||
$ | type | |||
) |
create a new node and node files
Definition at line 387 of file edit_funcs.php.
References $book_id, $lng, $path, book_fixed_to_tag(), shell(), and write_file().
Referenced by edit::on_add_subnode().
change_id_validate | ( | $ | new_id | ) |
Returns true if the new id is OK, otherwise returns false.
Definition at line 445 of file edit_funcs.php.
References $book_id, get_node_references(), process_index(), and T_().
Referenced by edit::on_change_id().
changeid_movefolders | ( | $ | node_path, | |
$ | new_node_path | |||
) |
move folders to the new node path, for all the languages
Definition at line 496 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), and shell().
Referenced by edit::on_change_id().
changeid_setid | ( | $ | new_id | ) |
set the new id in content.xml, for all the languages
Definition at line 539 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), file_content_xml(), shell(), and write_file().
Referenced by edit::on_change_id().
changeid_updatecache | ( | $ | node_path | ) |
Definition at line 572 of file edit_funcs.php.
References $book_id, $lng, book_fixed_to_tag(), get_arr_navigation(), shell(), update_navigation_all_langs(), and update_subnodes_html_all_langs().
Referenced by edit::on_change_id().
get_node_references | ( | ) |
Find the nodes that reference this one and return a list of them as a string (having a line for each node).
The return value is empty string ('') if there are no referencies.
This function is used when a node is deleted or when the node id is changed, in order to make sure that there are no dangling referencies in the document. Otherwise the document will become invalid and will fail to convert to other formats.
Definition at line 607 of file edit_funcs.php.
References $book_id, $lng, $node_id, and shell().
Referenced by change_id_validate(), and edit::on_delete().