"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "phprojekt/library/Phprojekt.php" between
PHProjekt-6.2.0.tar.gz and PHProjekt-6.2.1.tar.gz

About: PHProjekt is an application suite that supports communication and management of teams and companies. It includes a group calendar, project management, a request tracker and 12 other modules.

Phprojekt.php  (PHProjekt-6.2.0):Phprojekt.php  (PHProjekt-6.2.1)
skipping to change at line 34 skipping to change at line 34
const VERSION_MAJOR = 6; const VERSION_MAJOR = 6;
/** /**
* The second part of the version number. * The second part of the version number.
*/ */
const VERSION_MINOR = 2; const VERSION_MINOR = 2;
/** /**
* The third part of the version number. * The third part of the version number.
*/ */
const VERSION_RELEASE = 0; const VERSION_RELEASE = 1;
/** /**
* The extra part of the version number. * The extra part of the version number.
*/ */
const VERSION_EXTRA = null; const VERSION_EXTRA = null;
/** /**
* Name of the Registry for current project. * Name of the Registry for current project.
*/ */
const CURRENT_PROJECT = 'currentProjectId'; const CURRENT_PROJECT = 'currentProjectId';
skipping to change at line 292 skipping to change at line 292
* Set the current project ID. * Set the current project ID.
* *
* @param integer $projectId Current project ID. * @param integer $projectId Current project ID.
* *
* @return void * @return void
*/ */
public static function setCurrentProjectId($projectId) public static function setCurrentProjectId($projectId)
{ {
$project = new Project_Models_Project(); $project = new Project_Models_Project();
if (!$project = $project->find($projectId)) { if (!$project = $project->find($projectId)) {
throw new Phprojekt_PublishedException("Project with id $projectId n ot found."); throw new Exception("Project with id $projectId not found.");
} }
Zend_Registry::set(self::CURRENT_PROJECT, $project); Zend_Registry::set(self::CURRENT_PROJECT, $project);
} }
/** /**
* Return the current project ID. * Return the current project ID.
* *
* @return integer Current project ID. * @return integer Current project ID.
*/ */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)