Skip to content

Commit

Permalink
Fix property name, phpdoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 26, 2013
1 parent b96f327 commit 7006ff9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hermes/lib/Hermes.php
Expand Up @@ -228,6 +228,17 @@ public static function getEmployeesType($enumtype = 'multienum')
return array($enumtype, $employees);
}

/**
* Return a cost object hash.
*
* @param string $id The cost object id.
*
* @return array The cost object hash. Keys differ depending on the
* API queried, but should always contain:
* - id:
* - name:
* @throws Horde_ExceptionNotFound
*/
public static function getCostObjectByID($id)
{
static $cost_objects;
Expand Down Expand Up @@ -458,7 +469,8 @@ public static function getTimer($id)
$timers[$id]['id'] = $id;

try {
$timers[$id]['deliverable_text'] = Hermes::getCostObjectByID($timers[$id]['deliverable_id']);
$text = Hermes::getCostObjectByID($timers[$id]['deliverable_id']);
$timers[$id]['deliverable_text'] = $text['name'];
} catch (Horde_Exception_NotFound $e) {}

return $timers[$id];
Expand Down

0 comments on commit 7006ff9

Please sign in to comment.