Exemplo n.º 1
0
 /**
  * Get key purchase URL parameters
  *
  * @param integer                $index Index of entity in URL
  * @param \XLite\Model\ModuleKey $key   Module key object
  *
  * @return string
  */
 protected function getKeyURLParams($index, $key)
 {
     $keyData = $key->getKeyData();
     return sprintf('add_%d=%d&lickey_%d=%s', $index, $keyData['prolongKey'], $index, md5($key->getKeyValue()));
 }
 /**
  * {@inheritDoc}
  */
 public function prepareEntityBeforeCommit($type)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type));
     return parent::prepareEntityBeforeCommit($type);
 }