dibi::getInsertId PHP Method

getInsertId() public static method

Monostate for Dibi\Connection::getInsertId()
public static getInsertId ( $sequence = NULL ) : integer
return integer
    public static function getInsertId($sequence = NULL)
    {
        return self::getConnection()->getInsertId($sequence);
    }

Usage Example

示例#1
0
 protected function _createSignature($type, $definition, $path)
 {
     $data = array('type' => $type, 'definition' => $definition, 'path' => $path);
     dibi::query('INSERT INTO [signatures] %v', $data);
     $signatureId = dibi::getInsertId();
     $this->_assignSignatureToMagento($signatureId);
     return $signatureId;
 }
All Usage Examples Of dibi::getInsertId