24 use Psr\Log\LoggerInterface;
45 'idField' =>
'ctd_id',
46 'nameField' =>
'ctd_name',
47 'normalizationCallback' =>
null,
48 'insertCallback' =>
function ( $insertFields ) {
49 $insertFields[
'ctd_user_defined'] = 0;
50 $insertFields[
'ctd_count'] = 0;
56 'idField' =>
'model_id',
57 'nameField' =>
'model_name',
67 'idField' =>
'role_id',
68 'nameField' =>
'role_name',
69 'normalizationCallback' =>
'strtolower',
94 if ( !isset( $infos[$tableName] ) ) {
95 throw new \InvalidArgumentException(
"Invalid table name \$tableName" );
97 if ( $wiki === $this->lbFactory->getLocalDomainID() ) {
101 if ( isset( $this->stores[$tableName][$wiki] ) ) {
102 return $this->stores[$tableName][$wiki];
105 $info = $infos[$tableName];
107 $this->lbFactory->getMainLB( $wiki ),
113 $info[
'normalizationCallback'] ??
null,
115 $info[
'insertCallback'] ?? null
117 $this->stores[$tableName][$wiki] = $store;
128 return $this->
get(
'change_tag_def', $wiki );
138 return $this->
get(
'content_models', $wiki );
148 return $this->
get(
'slot_roles', $wiki );