Project Extension - PHP Hooks
=============================

Event Hooks
***************************************

#quickcreatetask
	New quick create task form is rendered
	@param	Integer			$idProject

#quicktask.saved
	Quicktask was saved
	@param	Integer		$idTask
	@param	Integer		$idProject
	@param	Array		$storageData (not cleaned for db yet)

#project.add
	Project added
	@param	Integer		$idProject

#project.update
	Project updated
	@param	Integer		$idProject
	@param	Array		$data

#project.changeStatus
	Project status changed
	@param	Integer		$idProject
	@param	Integer		$newStatus

#project.delete
	Project deleted
	@param	Integer		$idProject

#projectpresetdata
	Collect preset data attributes (labels and value)
	@todo	Refactor
	@param	Integer		$idProject
	@return	Array

#projectDetailsDynamicElements
	Collect dynamic elements for project detail rendering (own sections)
	@param	Integer		$idProject
	@return	Array		[class, title, content]

#task.create.render
	Before rendering the form to create a new task

#projects.render
	Before projects are rendered for listings

#task.update
	Task updated
	@param	Integer		$idTask
	@param	Array		$data

#task.add
	Task added
	@param	Integer		$idTask

#task.delete
	Task deleted
	@param	Integer		$idTask

#task.copy
	Task copied
	@param	Integer		$idTaskOld
	@param	Integer		$idTaskNew

#task.lock
	Task locked
	@param	Integer		$idTask

#task.unlock
	Task unlocked
	@param	Integer		$idTask




Data modification
***************************************

#projectCSVExportParseData
	Modify project data for CSV export
	@param	Array					$exportData
	@param	TodoyouProjectProject	$project
	@return	Array

#taskCSVExportParseData
	Modify task data for CSV export
	@param	Array				$exportData
	@param	TodoyuProjectTask	$project
	@return	Array

#project.properties
	Collect project detail properties
	@param	Array		$properties
	@param	Integer		$idProject

#project.defaultData
	Collect project default data
	@param	Array
	@return	Array


#project.dataBeforeRender
	Modify data before project details are rendered
	@param	Array		$data
	@param	Integer		$idProject
	@return	Array

#task.dataBeforeRendering
	Modify data before task details are rendered
	@param	Array		$data
	@param	Integer		$idTask
	@param	String		$callingMethod

#onTaskStatusChanged
	Modify task data on status change
	@param	Array		$data
	@param	Integer		$idTask

#taskdata
	Collect task data for rendering
	@param	Array		$data
	@param	Integer		$idTask

#taskinfo
	Collect task infos for rendering
	@param	Array		$data
	@param	Integer		$idTask
	@param	Integer		$infoLevel

#taskdataattributes
	Modify task data attributes before rendering
	@param	Array		$data
	@param	Integer		$idTask

#taskIcons
	Collect task icons
	@param	Array		$data
	@param	Integer		$idTask

#taskHeaderExtras
	Collect task header extras
	@param	Array		$data
	@param	Integer		$idTask

#task.defaultData
	Collect task default data
	@param	Array		$data
	@param	Integer		$type
	@param	Integer		$idProject
	@param	Integer		$idParentTask

#task.defaultsForNotAllowedFields
	Set default values for missing fields because the user was not allowed to populate them
	@param	Array		$data
	@param	Array		$originalData

#task.modifyFormfieldsForContainer
	@todo	Refactor/Remove
	@param	TodoyuForm	$form
	@param	Integer		$idTask

#taskcopydata
	Modify data before task is copied
	@param	Array		$data
	@param	Integer		$idTask
	@param	Integer		$idParent
	@param	Boolean		$withSubtasks
	@param	Integer		$idProject

#task.statusInfos
	Modify available status infos
	@param	Array	$data