public function TMGMTJobItemController::save in Translation Management Tool 7
@todo Eliminate the need to flatten and unflatten the JobItem data.
Overrides EntityAPIController::save
File
- controller/
tmgmt.controller.job_item.inc, line 19 - Contains the job item entity controller class.
Class
- TMGMTJobItemController
- Controller class for the job item entity.
Code
public function save($entity, DatabaseTransaction $transaction = NULL) {
$entity->changed = REQUEST_TIME;
if (!empty($entity->tjid)) {
$entity
->recalculateStatistics();
}
return parent::save($entity, $transaction);
}