/** * updates the capability path description */ function updateCapabilityPathDescription($name, $description) { $dao =& CopixDAOFactory::instanceOf('copix:CopixCapabilityPath'); //Check if the given capability path exists or not. if (($record = $dao->get($name)) === null) { //does not exist, cannot update return null; } //updating $record->description_ccpt = $description; return $dao->update($record); }