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()

View File

@@ -170,8 +170,8 @@ class DBObjectSet implements iDBObjectSetIterator
/**
* Specify the subset of attributes to load (for each class of objects) before performing the SQL query for retrieving the rows from the DB
*
* @param hash $aAttToLoad Format: alias => array of attribute_codes
*
* @param array $aAttToLoad Format: alias => array of attribute_codes
*
* @return void
*/