dibi::getInsertId PHP 메소드

getInsertId() 공개 정적인 메소드

Monostate for Dibi\Connection::getInsertId()
public static getInsertId ( $sequence = NULL ) : integer
리턴 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