* Code for function getBudgetWithUnit .
This commit is contained in:
@@ -2286,9 +2286,9 @@ class projectModel extends model
|
||||
/**
|
||||
* Convert budget unit.
|
||||
*
|
||||
* @param int $budget
|
||||
* @param int $budget
|
||||
* @access public
|
||||
* @return void
|
||||
* @return int|string $projectBudget
|
||||
*/
|
||||
public function getBudgetWithUnit($budget)
|
||||
{
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . "/test/lib/init.php";
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('project');
|
||||
|
||||
r($oriject->getBudgetWithUnit(99)) && p() && e('99');
|
||||
@@ -161,7 +161,7 @@ class Project
|
||||
}
|
||||
|
||||
/**
|
||||
* doActivate a project.
|
||||
* Do activate a project.
|
||||
*
|
||||
* @param int $projectID
|
||||
* @param object $project
|
||||
@@ -172,4 +172,16 @@ class Project
|
||||
{
|
||||
return $this->project->doActivate($projectID, $project);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get budget with unit.
|
||||
*
|
||||
* @param int $budget
|
||||
* @access public
|
||||
* @return int|string $projectBudget
|
||||
*/
|
||||
public function getBudgetWithUnit($budget)
|
||||
{
|
||||
return $this->project->getBudgetWithUnit($budget);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user