Except new class MDNodaLink for parameter in NodaIDGetter
This commit is contained in:
parent
d63f811367
commit
838a991256
@ -137,14 +137,16 @@ final class NodaIDGetter {
|
|||||||
* Returns place ID by entry in place noda table.
|
* Returns place ID by entry in place noda table.
|
||||||
*
|
*
|
||||||
* @param MDMysqli $mysqli_noda Database connection.
|
* @param MDMysqli $mysqli_noda Database connection.
|
||||||
* @param string $noda_source Language to check in.
|
* @param MDNodaLink $noda_link Language to check in.
|
||||||
* @param string $noda_nrinsource Name of the place to search for.
|
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public static function getPersinstIDByNodaLink(MDMysqli $mysqli_noda, string $noda_source, string $noda_nrinsource):int {
|
public static function getPersinstIDByNodaLink(MDMysqli $mysqli_noda, MDNodaLink $noda_link):int {
|
||||||
|
|
||||||
if (empty($noda_nrinsource)) return 0;
|
if (empty($noda_link->id)) return 0;
|
||||||
|
|
||||||
|
$noda_source = $noda_link->source->toDbName();
|
||||||
|
$noda_nrinsource = $noda_link->id;
|
||||||
|
|
||||||
$result = $mysqli_noda->query_by_stmt("
|
$result = $mysqli_noda->query_by_stmt("
|
||||||
SELECT `persinst_id`
|
SELECT `persinst_id`
|
||||||
@ -324,14 +326,16 @@ final class NodaIDGetter {
|
|||||||
* Returns place ID by entry in place noda table.
|
* Returns place ID by entry in place noda table.
|
||||||
*
|
*
|
||||||
* @param MDMysqli $mysqli_noda Database connection.
|
* @param MDMysqli $mysqli_noda Database connection.
|
||||||
* @param string $noda_source Language to check in.
|
* @param MDNodaLink $noda_link Language to check in.
|
||||||
* @param string $noda_nrinsource Name of the place to search for.
|
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public static function getPlaceIDByNodaLink(MDMysqli $mysqli_noda, string $noda_source, string $noda_nrinsource):int {
|
public static function getPlaceIDByNodaLink(MDMysqli $mysqli_noda, MDNodaLink $noda_link):int {
|
||||||
|
|
||||||
if (empty($noda_nrinsource)) return 0;
|
if (empty($noda_link->id)) return 0;
|
||||||
|
|
||||||
|
$noda_source = $noda_link->source->toDbName();
|
||||||
|
$noda_nrinsource = $noda_link->id;
|
||||||
|
|
||||||
$placeByNodaResult = $mysqli_noda->query_by_stmt("
|
$placeByNodaResult = $mysqli_noda->query_by_stmt("
|
||||||
SELECT `ort_id`
|
SELECT `ort_id`
|
||||||
@ -508,14 +512,16 @@ final class NodaIDGetter {
|
|||||||
* Returns tag ID by entry in tag noda table.
|
* Returns tag ID by entry in tag noda table.
|
||||||
*
|
*
|
||||||
* @param MDMysqli $mysqli_noda Database connection.
|
* @param MDMysqli $mysqli_noda Database connection.
|
||||||
* @param string $noda_source Language to check in.
|
* @param MDNodaLink $noda_link Language to check in.
|
||||||
* @param string $noda_nrinsource Name of the tag to search for.
|
|
||||||
*
|
*
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public static function getTagIDByNodaLink(MDMysqli $mysqli_noda, string $noda_source, string $noda_nrinsource):int {
|
public static function getTagIDByNodaLink(MDMysqli $mysqli_noda, MDNodaLink $noda_link):int {
|
||||||
|
|
||||||
if (empty($noda_nrinsource)) return 0;
|
if (empty($noda_link->id)) return 0;
|
||||||
|
|
||||||
|
$noda_source = $noda_link->source->toDbName();
|
||||||
|
$noda_nrinsource = $noda_link->id;
|
||||||
|
|
||||||
$tagByNodaResult = $mysqli_noda->query_by_stmt("
|
$tagByNodaResult = $mysqli_noda->query_by_stmt("
|
||||||
SELECT `tag_id`
|
SELECT `tag_id`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user