17 private $newLinks = [];
18 private $existingLinks;
27 foreach ( $ill as $link ) {
28 [ $key,
$title ] = explode(
':', $link, 2 );
29 $this->newLinks[$key] =
$title;
42 return [
'll_lang',
'll_title' ];
46 foreach ( $this->newLinks as $key =>
$title ) {
47 yield [ (string)$key,
$title ];
57 private function getExistingLinks() {
58 if ( $this->existingLinks ===
null ) {
59 $this->existingLinks = [];
61 $this->existingLinks[$row->ll_lang] = $row->ll_title;
64 return $this->existingLinks;
68 foreach ( $this->getExistingLinks() as
$lang =>
$title ) {
74 $links = $this->getExistingLinks();
76 return \array_key_exists(
$lang, $links )
82 return \array_key_exists(
$lang, $this->newLinks )
96 'll_lang' => $linkId[0]
if(!isset( $args[0])) $lang