PHPDoc for methods called by MetaModel

SVN:trunk[5299]
This commit is contained in:
Pierre Goiffon
2018-01-31 10:31:23 +00:00
parent 94d45fc77f
commit fb8b0f4f65
2 changed files with 11 additions and 4 deletions

View File

@@ -359,13 +359,20 @@ class CMDBSource
return $oResult;
}
/**
* @param string $sTable
*
* @return int
* @throws \MySQLException
* @throws \MySQLHasGoneAwayException
*/
public static function GetNextInsertId($sTable)
{
$sSQL = "SHOW TABLE STATUS LIKE '$sTable'";
$oResult = self::Query($sSQL);
$aRow = $oResult->fetch_assoc();
$iNextInsertId = $aRow['Auto_increment'];
return $iNextInsertId;
return $aRow['Auto_increment'];
}
public static function GetInsertId()