/**
  * Store the item in table and its value in key/value storage
  * @param $deliveryResultIdentifier
  * @param $test
  * @param $item
  * @param \taoResultServer_models_classes_Variable $itemVariable
  * @param $callIdItem
  */
 public function storeItemVariable($deliveryResultIdentifier, $test, $item, \taoResultServer_models_classes_Variable $itemVariable, $callIdItem)
 {
     //ensure that variable have epoch
     if (!$itemVariable->isSetEpoch()) {
         $itemVariable->setEpoch(microtime());
     }
     //store value in all case
     $this->persistence->insert(self::VARIABLES_TABLENAME, array(self::VARIABLES_FK_COLUMN => $deliveryResultIdentifier, self::TEST_COLUMN => $test, self::ITEM_COLUMN => $item, self::CALL_ID_ITEM_COLUMN => $callIdItem, self::VARIABLE_IDENTIFIER => $itemVariable->getIdentifier(), self::VARIABLE_VALUE => serialize($itemVariable)));
 }
 public function storeItemVariable($deliveryResultIdentifier, $test, $item, taoResultServer_models_classes_Variable $itemVariable, $callIdItem)
 {
     if (!$itemVariable->isSetEpoch()) {
         $itemVariable->setEpoch(microtime());
     }
     $data = array("deliveryResultIdentifier" => $deliveryResultIdentifier, "test" => $test, "item" => $item, "variable" => serialize($itemVariable), "callIdItem" => $callIdItem, "callIdTest" => null, "uri" => $deliveryResultIdentifier . $callIdItem, "class" => get_class($itemVariable));
     $this->storeVariableKeyValue($callIdItem, $itemVariable->getIdentifier(), $data);
 }