Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function fixIndex($index)
 {
     $index = parent::fixIndex($index);
     // If the ID is a single-field integer identifier, it is used as
     // index. Replace any leading minus by underscore to make it a valid
     // form name.
     if ($this->idAsIndex && $index < 0) {
         $index = strtr($index, '-', '_');
     }
     return $index;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function fixIndex($index)
 {
     $index = parent::fixIndex($index);
     $index = rtrim(base64_encode($index), '=');
     return $index;
 }