protected function _createDataHtml(Pipeline_Model_PipelineProperty $newProperty, Pipeline_Model_PipelinePropertyValues $newPropertyValue)
    {
        $dataHtml = '';
        $dataHtml .= '<tr id="' . $newPropertyValue->getId() . '">';
        $dataHtml .= '<td>' . $newProperty->getName() . '</td>';
        $dataHtml .= '<td><input value="' . $newPropertyValue->getValue() . '" class="input-hidden" readonly="readonly" type="text"></td>';
        $dataHtml .= <<<EOT
<td>
    <div class="btn-group btn-group-sm mr1">
        <button class="btn btn-default" data-event="edit">
            <span class="glyphicon glyphicon-pencil"></span>
        </button>
        <button class="btn btn-default" data-event="delete">
            <span class="glyphicon glyphicon-trash"></span>
        </button>
    </div>
    <button type="button" class="btn btn-sm btn-success hidden" data-event="save">Сохранить</button>
</td>
EOT;
        $dataHtml .= '</tr>';
        return $dataHtml;
    }
 /**
  * @param $pipelineId
  * @param $propertyId
  * @param $value
  * @return null|Pipeline_Model_PipelinePropertyValues
  *
  */
 protected function _createPropertyValue($pipelineId, $propertyId, $value)
 {
     $pipelinePropertyValueMapper = new Pipeline_Model_Mapper_PipelinePropertyValues();
     $pipelinePropertyValue = new Pipeline_Model_PipelinePropertyValues();
     $pipelinePropertyValue->setOptions(array('pipelineId' => $pipelineId, 'propertyId' => $propertyId, 'value' => $value));
     $pipelinePropertyValueMapper->save($pipelinePropertyValue);
     $newPropertyValue = $pipelinePropertyValueMapper->findByKey($pipelinePropertyValue->getPipelineId(), $pipelinePropertyValue->getPropertyId(), new Pipeline_Model_PipelinePropertyValues());
     return $newPropertyValue;
 }
 /**
  * @param Zend_Db_Table_Rowset $row
  * @param Pipeline_Model_PipelinePropertyValues $entry
  * @return Pipeline_Model_PipelinePropertyValues
  */
 protected function _setDbData($row, Pipeline_Model_PipelinePropertyValues $entry)
 {
     $info = $this->getDbTable()->info();
     $properties = $info['cols'];
     foreach ($properties as $property) {
         $entry->__set($this->_normaliseName($property), $row->{$property});
     }
     return $entry;
 }