 /templates/docbook/edit/edit_funcs.php
/templates/docbook/edit/edit_funcs.phpThis function sets a lock before index (structure of the book)
is modified, in order to make sure that the change in the index and update of the cache files (navigation and subnodes) happens as a single transaction, and concurrent editing does not have unexpected results. Since the structure of the book is the same for all the languages and the changes are sinchronized for all the languages, the lock locks all the languages.
 add_subsections_rs (line 118)
		add_subsections_rs (line 118)
	add the recordset 'subsections'
 add_to_modified_nodes (line 62)
		add_to_modified_nodes (line 62)
	Append the node path to the file 'modified_nodes.txt'
 changeid_movefolders (line 496)
		changeid_movefolders (line 496)
	move folders to the new node path, for all the languages
 changeid_setid (line 539)
		changeid_setid (line 539)
	set the new id in content.xml, for all the languages
 changeid_updatecache (line 572)
		changeid_updatecache (line 572)
	 change_id_validate (line 445)
		change_id_validate (line 445)
	Returns true if the new id is OK, otherwise returns false.
 create_new_node (line 387)
		create_new_node (line 387)
	create a new node and node files
 delete_removefolders (line 359)
		delete_removefolders (line 359)
	 delete_removefolders_all_langs (line 348)
		delete_removefolders_all_langs (line 348)
	 get_node_references (line 607)
		get_node_references (line 607)
	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.
 lock_index (line 38)
		lock_index (line 38)
	 process_index_node (line 139)
		process_index_node (line 139)
	Applies the given transformer to index.xml, passing the node as a parameter, and returns the output.
 remove_from_modified_nodes (line 89)
		remove_from_modified_nodes (line 89)
	Remove the node path from the file 'modified_nodes.txt'
 transform_index (line 157)
		transform_index (line 157)
	Applies a transformation to index.xml and then writes the result back to index.xml.
 unlock_index (line 54)
		unlock_index (line 54)
	 updatenavig_movedown (line 313)
		updatenavig_movedown (line 313)
	 updatenavig_moveup (line 302)
		updatenavig_moveup (line 302)
	 update_cache_files (line 335)
		update_cache_files (line 335)
	 update_cache_files_all_langs (line 324)
		update_cache_files_all_langs (line 324)
	 update_navigation (line 215)
		update_navigation (line 215)
	Update the file navigation.txt for the given node and language.
 update_navigation_all_langs (line 203)
		update_navigation_all_langs (line 203)
	Update the files navigation.txt for all languages, for the given node.
 update_subnodes_html (line 264)
		update_subnodes_html (line 264)
	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).
 update_subnodes_html_all_langs (line 239)
		update_subnodes_html_all_langs (line 239)
	Updates the cache files subnodes.html for the given node, for all its ancestors, and for all the languages.
Documentation generated on Wed, 09 Jan 2008 08:26:52 +0100 by phpDocumentor 1.3.2