Turba_Driver::_makeKey PHP Method

_makeKey() protected method

Creates an object key for a new object.
protected _makeKey ( array $attributes ) : string
$attributes array The attributes (in driver keys) of the object being added.
return string A unique ID for the new object.
    protected function _makeKey(array $attributes)
    {
        return hash('md5', mt_rand());
    }

Usage Example

Example #1
0
 /**
  * Creates an object key for a new object.
  *
  * @param array $attributes  The attributes (in driver keys) of the
  *                           object being added.
  *
  * @return string  A unique ID for the new object.
  */
 protected function _makeKey(array $attributes)
 {
     return $this->_driver->_makeKey($attributes);
 }