-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathmsls-class.puml
985 lines (985 loc) · 34.9 KB
/
msls-class.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
@startuml class-diagram
class "MslsCustomColumnTaxonomy\n<b>Handling of existing/not existing translations in the backend</b>" as MslsCustomColumnTaxonomy {
#add_hooks()
+column_default(deprecated, column_name, item_id)
+delete(object_id)
}
class "MslsCustomFilter\n<b>Adding custom filter to posts/pages table.</b>" as MslsCustomFilter {
{static} +init()
+add_filter()
+execute_filter(query)
}
class "MslsBlock" as MslsBlock {
#options : MslsOptions
+__construct(options)
{static} +init()
+register_block()
}
class "MslsOptionsQuery\n<b>MslsOptionsQuery</b>" as MslsOptionsQuery {
+with_front : bool
#sql_cache : MslsSqlCacher
+__construct(sql_cache)
{static} +get_params()
{static} +create(id)
+get_postlink(language)
}
class "MslsContentTypes\n<b>Supported content types</b>" as MslsContentTypes {
#request : string
#types : string[]
{static} +create()
+is_post_type()
+is_taxonomy()
+acl_request()
{static} {abstract} +get()
{abstract} +get_request()
}
class "MslsOptionsQueryMonth\n<b>MslsOptionsQueryMonth</b>" as MslsOptionsQueryMonth {
#year : int
#monthnum : int
+__construct(sql_cache)
{static} +get_params()
+has_value(language)
+get_current_link()
}
class "MslsTaxonomy\n<b>Content types: Taxonomies (Tags, Categories, ...)</b>" as MslsTaxonomy {
#post_type : string
+__construct()
{static} +get()
+get_request()
+is_taxonomy()
+acl_request()
+get_post_type()
}
class "MslsPostTagClassic\n<b>Post Tag Classic</b>" as MslsPostTagClassic {
+add_input(taxonomy)
+edit_input(tag, taxonomy)
+the_input(tag, title_format, item_format)
+print_option(blog, type, mydata, item_format)
}
class "MslsPostType\n<b>Content types: Post types (Pages, Posts, ...)</b>" as MslsPostType {
+__construct()
{static} +get()
+get_request()
+is_post_type()
}
class "MslsPostTag\n<b>Post Tag</b>" as MslsPostTag {
{static} +suggest()
{static} +init()
+add_input(taxonomy)
+edit_input(tag, taxonomy)
+the_input(tag, title_format, item_format)
+set(term_id)
+maybe_set_linked_term(mydata)
#get_select_title()
}
class "MslsLanguageArray\n<b>Stores the language input from post</b>" as MslsLanguageArray {
#arr : array<string, int>
+__construct(arr)
+set(key, value)
+get_val(key)
+get_arr(key)
}
class "MslsOutput\n<b>Output in the frontend</b>" as MslsOutput {
#tags : array<string, string>
{static} +init()
+get(display, filter, exists)
+get_alternate_links()
+__toString()
+get_tags()
+set_tags(arr)
+is_requirements_not_fulfilled(thing, exists, language)
}
class "MslsWidget\n<b>The standard widget of the Multisite Language Switcher</b>" as MslsWidget {
+__construct()
{static} +init()
+widget(args, instance)
+update(new_instance, old_instance)
+form(instance)
}
class "MslsAdmin\n<b>Administration of the options</b>" as MslsAdmin {
{static} +init()
+get_menu_slug()
+get_options_page_link()
+__call(method, args)
+has_problems()
+render()
+subsubsub()
+register()
+language_section()
+main_section()
+advanced_section()
+rewrites_section()
#add_settings_fields(map, section)
+blog_language()
+display()
+admin_display()
+reference_user()
+description()
+content_priority()
+render_rewrite(key)
+validate(arr)
+set_blog_language(arr)
}
class "MslsLinkImageOnly\n<b>Link type: Image only</b>" as MslsLinkImageOnly {
#format_string : string
{static} +get_description()
}
class "MslsMetaBox\n<b>Meta box for the edit mode of the (custom) post types</b>" as MslsMetaBox {
{static} +init()
{static} +suggest()
{static} +get_suggested_fields(json, args)
+add()
+render_select()
+render_options(type, msls_id)
+render_option(post_id, msls_id)
+render_input()
+set(post_id)
+maybe_set_linked_post(mydata)
}
class "MslsLinkTextImage\n<b>Link type: Text and image</b>" as MslsLinkTextImage {
#format_string : string
{static} +get_description()
}
class "MslsBlog\n<b>Internal representation of a blog</b>" as MslsBlog {
-obj : StdClass
-language : string
-description : string
+__construct(obj, description)
+__get(key)
+get_description()
+get_title(icon_type)
+get_language(default)
+get_alpha2()
+get_url(options)
#get_permalink(options)
{static} +_cmp(a, b)
{static} +language(a, b)
{static} +description(a, b)
+get_blavatar()
}
class "MslsOptionsTaxTermCategory\n<b>MslsOptionsTaxTermCategory</b>" as MslsOptionsTaxTermCategory {
}
class "MslsOptionsQueryPostType\n<b>MslsOptionsQueryPostType</b>" as MslsOptionsQueryPostType {
#post_type : string
+__construct(sql_cache)
{static} +get_params()
+has_value(language)
+get_current_link()
}
class "MslsOptionsPost\n<b>Post options</b>" as MslsOptionsPost {
#autoload : bool
+get_postlink(language)
+get_current_link()
}
class "MslsAdminIcon\n<b>Handles the icon links in the backend</b>" as MslsAdminIcon {
#icon_type : string
#language : string
+origin_language : string
#src : string
#href : string
#blog_id : int
#type : string
#path : string
#id : int
+__construct(type)
+__toString()
{static} +create(type)
+set_icon_type(icon_type)
+set_path()
+set_language(language)
+set_src(src)
+set_href(id)
+set_id(id)
+set_origin_language(origin_language)
+get_img()
+get_a()
+get_icon()
+get_edit_new()
}
class "MslsOptionsTax\n<b>MslsOptionsTax</b>" as MslsOptionsTax {
#autoload : bool
{static} +create(id)
+get_tax_query()
+get_postlink(language)
+get_current_link()
+get_term_link(term_id)
}
class "MslsRegistryInstance\n<b>Class MslsRegistryInstance</b>" as MslsRegistryInstance {
{static} +instance()
}
class "MslsOptionsQueryDay\n<b>MslsOptionsQueryDay</b>" as MslsOptionsQueryDay {
#year : int
#monthnum : int
#day : int
+__construct(sql_cache)
{static} +get_params()
+has_value(language)
+get_current_link()
}
class "MslsRegistry\n<b>Registry instead of singletons</b>" as MslsRegistry {
-arr : string[]
-instance : ?MslsRegistry
-get(key)
-set(key, instance)
{static} +instance()
{static} +get_object(key)
{static} +set_object(key, instance)
}
class "MslsCustomColumn\n<b>Handling of existing/not existing translations in the backend listings of</b>" as MslsCustomColumn {
{static} +init()
#add_hooks()
+th(columns)
+td(column_name, item_id)
}
class "MslsGetSet\n<b>Generic class for overloading properties</b>" as MslsGetSet {
#arr : array<string, mixed>
+__set(key, value)
+__get(key)
+__isset(key)
+__unset(key)
+reset()
+has_value(key)
+is_empty()
+get_arr()
}
class "MslsShortCode" as MslsShortCode {
{static} +init()
{static} +render_widget()
}
class "MslsSqlCacher\n<b>Wrapper to avoid direct SQL without caching</b>" as MslsSqlCacher {
#db : wpdb
#cache_key : string
#expire : int
+__construct(db, cache_key, expire)
{static} +create(caller, params, expire)
+__get(name)
+__call(method, args)
}
class "MslsOptionsQueryYear\n<b>OptionsQueryYear</b>" as MslsOptionsQueryYear {
#year : int
+__construct(sql_cache)
{static} +get_params()
+has_value(language)
+get_current_link()
}
class "MslsFields" as MslsFields {
}
class "MslsOptionsTaxTerm\n<b>MslsOptionsTaxTerm</b>" as MslsOptionsTaxTerm {
+with_front : bool
+check_base(url, options)
{static} #get_base_defined(tax_query)
{static} #get_base_option()
}
class "MslsPlugin\n<b>Provides functionalities for general hooks and activation/deactivation</b>" as MslsPlugin {
#options : MslsOptions
+__construct(options)
{static} +init()
{static} +print_alternate_links()
+custom_enqueue()
{static} +plugins_url(path)
{static} +plugin_dir_path(path)
{static} +dirname(path)
{static} +file()
{static} +path()
+init_i18n_support()
{static} +message_handler(message, css_class)
{static} +activate()
{static} +uninstall()
{static} +cleanup()
}
class "MslsContentFilter" as MslsContentFilter {
#options : MslsOptions
+__construct(options)
{static} +init()
+content_filter(content)
+filter_string(pref, post)
+format_available_languages(links)
}
class "MslsBlogCollection\n<b>Collection of blog-objects</b>" as MslsBlogCollection {
-current_blog_id : int
-current_blog_output : bool
-objects : MslsBlog[]
-objects_order : string
-active_plugins : string[]
+__construct()
{static} +get_configured_blog_description(blog_id, description)
+get_blogs_of_reference_user(options)
+get_blog(language)
+get_blog_id(language)
+get_current_blog_id()
+is_current_blog(blog)
+has_current_blog()
+get_current_blog()
+get_objects()
+get_object(blog_id)
+is_plugin_active(blog_id)
+get_plugin_active_blogs()
+get()
+get_filtered(filter)
+get_users(fields, number)
{static} +get_blog_language(blog_id, default)
}
class "MslsRequest" as MslsRequest {
{static} +get_config(name)
{static} +has_var(name, input_type)
{static} +get_var(name, input_type)
{static} +get(name, default)
{static} +isset(keys)
{static} +get_request(keys, default)
}
class "MslsOptions\n<b>General options class</b>" as MslsOptions {
#name : string
#exists : bool
#autoload : bool
#args : array<int, mixed>
-available_languages : array<string, string>
+with_front : bool
{static} +create(id)
{static} +is_main_page()
{static} +is_tax_page()
{static} +is_query_page()
+__construct()
+get_option_name()
+get_arg(index, default)
+save(arr)
+delete()
+set(arr)
+get_permalink(language)
+get_postlink(language)
+get_tax_query()
+get_current_link()
+is_excluded()
+is_content_filter()
+get_order()
+get_url(dir)
+get_slug(post_type)
+get_icon(language)
+get_flag_url(language)
+get_available_languages()
{static} +check_for_blog_slug(url, options)
+get_icon_type()
}
class "MslsAdminBar" as MslsAdminBar {
#icon_type : string
#blog_collection : MslsBlogCollection
+__construct(options, blog_collection)
{static} +init()
+update_admin_bar(wp_admin_bar)
+add_node(wp_admin_bar, node_id, title)
#get_title(blog, blavatar)
}
class "MslsJson\n<b>Container for an array which will used in JavaScript as object in JSON</b>" as MslsJson {
#arr : array<int, array<string, (string|int)>>
+add(value, label)
{static} +compare(a, b)
+get()
+encode()
+__toString()
}
class "MslsOptionsQueryAuthor\n<b>MslsOptionsQueryAuthor</b>" as MslsOptionsQueryAuthor {
#author_id : int
+__construct(sql_cache)
{static} +get_params()
+has_value(language)
+get_current_link()
}
class "MslsLink\n<b>Link type: Image and text</b>" as MslsLink {
#format_string : string
{static} +get_types()
{static} +get_description()
{static} +get_types_description()
{static} +create(display)
{static} +callback(x)
+__toString()
}
class "MslsMain\n<b>Abstraction for the hook classes</b>" as MslsMain {
#options : MslsOptions
#collection : MslsBlogCollection
+__construct(options, collection)
{static} +create()
+debugger(message)
+get_input_array(object_id)
+is_autosave(post_id)
+verify_nonce()
+delete(object_id)
#save(object_id, class_name)
}
class "MslsLinkTextOnly\n<b>Link type: Text only</b>" as MslsLinkTextOnly {
#format_string : string
{static} +get_description()
}
class "MslsAdminIconTaxonomy\n<b>Handles backend icons for taxonomies</b>" as MslsAdminIconTaxonomy {
#path : string
+set_href(id)
+set_path()
}
package ContentImport as ContentImport {
class "Relations\n<b>Class Relations</b>" as ContentImport_Relations {
+to_create : array
#local_options : array
#import_coordinates : ImportCoordinates
+__construct(import_coordinates)
+merge(relations)
+get_data()
+create()
#create_source_to_local()
#create_local_to_source()
+should_create(creator, dest_lang, dest_post_id)
}
class "ImportCoordinates" as ContentImport_ImportCoordinates {
+source_blog_id : int
+source_post_id : int
+dest_blog_id : int
+dest_post_id : int
+source_post : WP_Post
+source_lang : string
+dest_lang : string
+importers : array
+validate()
+get_importer_for(importer_type)
+parse_importers_from_request()
+set_importer_for(importer_type, slug)
}
class "MetaBox" as ContentImport_MetaBox {
#data : array
+render()
#inline_thickbox_url(data)
+print_modal_html()
#inline_thickbox_html(echo, data)
}
class "Service\n<b>Class Service</b>" as ContentImport_Service {
+register()
+hook()
}
class "AttachmentPathFinder" as ContentImport_AttachmentPathFinder {
+filter_srcset(sources, sizeArray, imageSrc, imageMeta, attachmentId)
#has_import_data(attachment_id)
+filter_attachment_url(url, attachment_id)
#get_source_post(attachment_id, msls_imported)
}
class "ImportLogger" as ContentImport_ImportLogger {
#levels_delimiter : string
#data : array<string, array>
#import_coordinates : ImportCoordinates
+__construct(import_coordinates)
+merge(logger)
+get_data()
+save()
+log_error(where, what)
#log(where, what, root)
#build_nested_array(path, what)
#build_path(where)
+get_levels_delimiter()
+set_levels_delimiter(levels_delimiter)
+log_success(where, what)
+log_information(key, message)
+get_error(where)
#get_nested_value(where)
+get_success(where)
+get_information(key)
}
class "ContentImporter\n<b>Class ContentImporter</b>" as ContentImport_ContentImporter {
#main : MslsMain
#logger : ImportLogger
#relations : Relations
#handle : bool
#has_created_post : int
+__construct(main)
+get_logger()
+set_logger(logger)
+get_relations()
+set_relations(relations)
+handle_import(data)
#pre_flight_check(data)
+parse_sources()
#get_the_blog_post_ID(blog_id)
#insert_blog_post(blog_id, data)
+handle(handle)
+import_content(import_coordinates, post_fields)
#update_inserted_blog_post_data(blog_id, post_id, data)
#redirect_to_blog_post(dest_blog_id, post_id)
+filter_empty(empty)
}
package LogWriters as ContentImport.LogWriters {
interface "LogWriter" as ContentImport_LogWriters_LogWriter {
+write(data)
}
class "AdminNoticeLogger" as ContentImport_LogWriters_AdminNoticeLogger {
#transient : string
#import_coordinates : ImportCoordinates
+write(data)
#get_section_html(section_title, entries, escape_entries)
+show_last_log(echo)
+set_import_coordinates(import_coordinates)
+get_transient()
}
}
package Importers as ContentImport.Importers {
interface "Importer" as ContentImport_Importers_Importer {
+import(data)
+set_import_coordinates(import_coordinates)
+get_logger()
+get_relations()
{static} +info()
}
class "BaseImporter" as ContentImport_Importers_BaseImporter {
+import_coordinates : ImportCoordinates
+logger : ImportLogger
+relations : Relations
+__construct(import_coordinates, logger, relations)
+import(data)
+set_import_coordinates(import_coordinates)
+get_logger()
+get_relations()
{static} +info()
}
class "PostFieldsImporters" as ContentImport_Importers_PostFieldsImporters {
#importers_map : array<string, string>
+details()
}
class "Map" as ContentImport_Importers_Map {
+make(import_coordinates)
+factories()
}
class "TermsImporters" as ContentImport_Importers_TermsImporters {
#importers_map : array<string, string>
+details()
}
class "WithRequestPostAttributes\n<b>Trait WithRequestPostAttributes</b>" as ContentImport_Importers_WithRequestPostAttributes {
#read_post_type_from_request(default)
}
class "PostThumbnailImporters" as ContentImport_Importers_PostThumbnailImporters {
#importers_map : array<string, string>
+details()
}
class "PostMetaImporters" as ContentImport_Importers_PostMetaImporters {
#importers_map : array<string, string>
+details()
}
class "ImportersBaseFactory" as ContentImport_Importers_ImportersBaseFactory {
#importers_map : array<string, string>
+make(import_coordinates)
+details()
+selected()
#importers_info()
}
class "AttachmentsImporters" as ContentImport_Importers_AttachmentsImporters {
#importers_map : array<string, string>
+details()
}
interface "ImportersFactory" as ContentImport_Importers_ImportersFactory {
+make(import_coordinates)
+details()
+selected()
}
package PostMeta as ContentImport.Importers.PostMeta {
class "Duplicating" as ContentImport_Importers_PostMeta_Duplicating {
{static} +info()
+import(data)
+filter_post_meta(meta)
}
}
package PostThumbnail as ContentImport.Importers.PostThumbnail {
class "Linking\n<b>Class Linking</b>" as ContentImport_Importers_PostThumbnail_Linking {
{static} +info()
+import(data)
#get_attachment_meta(source_post_thumbnail_id)
}
}
package Terms as ContentImport.Importers.Terms {
class "ShallowDuplicating\n<b>Class ShallowDuplicating</b>" as ContentImport_Importers_Terms_ShallowDuplicating {
#reset_taxonomies : array
{static} +info()
+import(data)
#create_local_term(term, msls_term, dest_lang)
#filter_term_meta(meta, term)
#update_object_terms(object_id, dest_term_id, taxonomy)
}
}
package PostFields as ContentImport.Importers.PostFields {
class "Duplicating\n<b>Class Duplicating</b>" as ContentImport_Importers_PostFields_Duplicating {
{static} +info()
+import(data)
+filter_fields()
}
}
package Attachments as ContentImport.Importers.Attachments {
class "Linking\n<b>Class Linking</b>" as ContentImport_Importers_Attachments_Linking {
{static} +info()
+import(data)
}
}
}
}
package Component as Component {
class "Icon\n<b>Class Icon</b>" as Component_Icon {
#map : string[]
+__construct()
#maybe(language, prefix, postfix)
{abstract} #get_include()
{abstract} +get(language)
}
class "Component\n<b>Abstract class Input</b>" as Component_Component {
{abstract} +render()
{static} +get_allowed_html()
}
class "Wrapper" as Component_Wrapper {
#element : string
#content : string
+__construct(element, content)
+render()
}
package Input as Component.Input {
class "Group\n<b>Class Options</b>" as Component_Input_Group {
#arr : Component[]
#glue : string
+__construct(glue)
+add(input)
+render()
}
class "Label\n<b>Class Label</b>" as Component_Input_Label {
#key : string
#text : string
+__construct(key, text)
+render()
}
class "Option\n<b>Class Option</b>" as Component_Input_Option {
#key : string
#value : string
#selected : string
+__construct(key, value, selected)
+render()
}
class "Select" as Component_Input_Select {
#key : string
#options : Group
+__construct(key, arr, selected)
+render()
}
class "Checkbox\n<b>Class Checkbox</b>" as Component_Input_Checkbox {
#key : string
#selected : string
+__construct(key, value)
+render()
}
class "Text" as Component_Input_Text {
#key : string
#value : string
#size : int
#readonly : string
+__construct(key, value, size, readonly)
+render()
}
}
package Icon as Component.Icon {
class "IconPng\n<b>Class IconPng</b>" as Component_Icon_IconPng {
#get_include()
+get(language)
}
class "IconSvg\n<b>Class IconSvg</b>" as Component_Icon_IconSvg {
#get_include()
+get(language)
}
class "IconLabel\n<b>Class IconLabel</b>" as Component_Icon_IconLabel {
#get_include()
+get(language)
}
}
}
package Map as Map {
class "HrefLang\n<b>Class HrefLang</b>" as Map_HrefLang {
#map : array<string, string>
+__construct(blogs)
#get_hreflang(language)
+get(language)
}
}
package Query as Query {
class "YearPostsCounterQuery" as Query_YearPostsCounterQuery {
+__invoke(year)
}
class "CleanupOptionsQuery\n<b>Cleans up options</b>" as Query_CleanupOptionsQuery {
+__invoke()
}
class "AuthorPostsCounterQuery\n<b>Gets the number of published posts by an author</b>" as Query_AuthorPostsCounterQuery {
+__invoke(author_id)
}
class "TranslatedPostIdQuery\n<b>Gets the posts_ids of posts that have been translated to a specific language</b>" as Query_TranslatedPostIdQuery {
+__invoke(language)
}
class "MonthPostsCounterQuery\n<b>Gets the number of published posts by a month</b>" as Query_MonthPostsCounterQuery {
+__invoke(year, monthnum)
}
class "BlogsInNetworkQuery\n<b>Gets the blog_ids of blogs in the network</b>" as Query_BlogsInNetworkQuery {
+__invoke()
}
class "DatePostsCounterQuery\n<b>Gets the number of published posts by a date</b>" as Query_DatePostsCounterQuery {
+__invoke(year, monthnum, day)
}
class "AbstractQuery\n<b>AbstractQuery</b>" as Query_AbstractQuery {
#sql_cache : MslsSqlCacher
+__construct(sql_cache)
}
}
Component_Component <|-- Component_Input_Checkbox
Component_Component <|-- Component_Input_Group
Component_Component <|-- Component_Input_Label
Component_Component <|-- Component_Input_Option
Component_Component <|-- Component_Input_Select
Component_Component <|-- Component_Input_Text
Component_Component <|-- Component_Wrapper
Component_Icon <|-- Component_Icon_IconLabel
Component_Icon <|-- Component_Icon_IconPng
Component_Icon <|-- Component_Icon_IconSvg
Component_Icon_IconPng ..> MslsPlugin
Component_Icon_IconSvg ..> MslsPlugin
Component_Input_Group "1" ..> "*" Component_Component
Component_Input_Group ..> Component_Component
Component_Input_Select ..> Component_Input_Group
Component_Input_Select ..> Component_Input_Option
ContentImport_ContentImporter ..> ContentImport_ImportCoordinates
ContentImport_ContentImporter ..> ContentImport_ImportLogger
ContentImport_ContentImporter ..> ContentImport_Importers_Map
ContentImport_ContentImporter ..> ContentImport_Relations
ContentImport_ContentImporter ..> MslsBlogCollection
ContentImport_ContentImporter ..> MslsMain
ContentImport_ContentImporter ..> MslsOptionsPost
ContentImport_ContentImporter ..> MslsRequest
ContentImport_ImportCoordinates ..> MslsBlogCollection
ContentImport_ImportLogger ..> ContentImport_ImportCoordinates
ContentImport_ImportLogger ..> ContentImport_ImportLogger
ContentImport_ImportLogger ..> ContentImport_LogWriters_AdminNoticeLogger
ContentImport_ImportLogger ..> ContentImport_LogWriters_LogWriter
ContentImport_Importers_BaseImporter ..> ContentImport_ImportCoordinates
ContentImport_Importers_BaseImporter ..> ContentImport_ImportLogger
ContentImport_Importers_BaseImporter ..> ContentImport_Relations
ContentImport_Importers_BaseImporter <|-- ContentImport_Importers_Attachments_Linking
ContentImport_Importers_BaseImporter <|-- ContentImport_Importers_PostFields_Duplicating
ContentImport_Importers_BaseImporter <|-- ContentImport_Importers_PostMeta_Duplicating
ContentImport_Importers_BaseImporter <|-- ContentImport_Importers_PostThumbnail_Linking
ContentImport_Importers_BaseImporter <|-- ContentImport_Importers_Terms_ShallowDuplicating
ContentImport_Importers_Importer ..> ContentImport_ImportCoordinates
ContentImport_Importers_Importer ..> ContentImport_ImportLogger
ContentImport_Importers_Importer ..> ContentImport_Relations
ContentImport_Importers_Importer <|-- ContentImport_Importers_BaseImporter
ContentImport_Importers_ImportersBaseFactory ..> ContentImport_ImportCoordinates
ContentImport_Importers_ImportersBaseFactory ..> ContentImport_Importers_BaseImporter
ContentImport_Importers_ImportersBaseFactory ..> ContentImport_Importers_Importer
ContentImport_Importers_ImportersBaseFactory <|-- ContentImport_Importers_AttachmentsImporters
ContentImport_Importers_ImportersBaseFactory <|-- ContentImport_Importers_PostFieldsImporters
ContentImport_Importers_ImportersBaseFactory <|-- ContentImport_Importers_PostMetaImporters
ContentImport_Importers_ImportersBaseFactory <|-- ContentImport_Importers_PostThumbnailImporters
ContentImport_Importers_ImportersBaseFactory <|-- ContentImport_Importers_TermsImporters
ContentImport_Importers_ImportersFactory ..> ContentImport_ImportCoordinates
ContentImport_Importers_ImportersFactory ..> ContentImport_Importers_Importer
ContentImport_Importers_ImportersFactory <|-- ContentImport_Importers_ImportersBaseFactory
ContentImport_Importers_Map ..> ContentImport_ImportCoordinates
ContentImport_Importers_Map ..> ContentImport_Importers_AttachmentsImporters
ContentImport_Importers_Map ..> ContentImport_Importers_PostFieldsImporters
ContentImport_Importers_Map ..> ContentImport_Importers_PostMetaImporters
ContentImport_Importers_Map ..> ContentImport_Importers_PostThumbnailImporters
ContentImport_Importers_Map ..> ContentImport_Importers_TermsImporters
ContentImport_Importers_PostThumbnail_Linking ..> ContentImport_AttachmentPathFinder
ContentImport_Importers_Terms_ShallowDuplicating ..> MslsOptionsTax
ContentImport_Importers_Terms_ShallowDuplicating ..> MslsOptionsTaxTerm
ContentImport_Importers_WithRequestPostAttributes ..> MslsRequest
ContentImport_LogWriters_AdminNoticeLogger ..> Component_Component
ContentImport_LogWriters_AdminNoticeLogger ..> ContentImport_ImportCoordinates
ContentImport_LogWriters_LogWriter <|-- ContentImport_LogWriters_AdminNoticeLogger
ContentImport_MetaBox ..> Component_Component
ContentImport_MetaBox ..> Component_Wrapper
ContentImport_MetaBox ..> ContentImport_Importers_Map
ContentImport_MetaBox ..> MslsBlogCollection
ContentImport_MetaBox ..> MslsFields
ContentImport_MetaBox ..> MslsOptionsPost
ContentImport_MetaBox ..> MslsPlugin
ContentImport_MetaBox ..> MslsRequest
ContentImport_Relations ..> ContentImport_ImportCoordinates
ContentImport_Relations ..> ContentImport_Relations
ContentImport_Relations ..> MslsOptions
ContentImport_Service ..> ContentImport_AttachmentPathFinder
ContentImport_Service ..> ContentImport_ContentImporter
ContentImport_Service ..> ContentImport_LogWriters_AdminNoticeLogger
Map_HrefLang ..> MslsBlogCollection
MslsAdmin ..> Component_Input_Checkbox
MslsAdmin ..> Component_Input_Group
MslsAdmin ..> Component_Input_Label
MslsAdmin ..> Component_Input_Select
MslsAdmin ..> Component_Input_Text
MslsAdmin ..> MslsAdminIcon
MslsAdmin ..> MslsLink
MslsAdmin ..> MslsPlugin
MslsAdmin ..> MslsRegistry
MslsAdminBar ..> MslsAdminBar
MslsAdminBar ..> MslsBlog
MslsAdminBar ..> MslsBlogCollection
MslsAdminBar ..> MslsOptions
MslsAdminIcon ..> Component_Component
MslsAdminIcon ..> Component_Icon_IconLabel
MslsAdminIcon ..> Component_Icon_IconSvg
MslsAdminIcon ..> MslsAdminIcon
MslsAdminIcon ..> MslsAdminIconTaxonomy
MslsAdminIcon <|-- MslsAdminIconTaxonomy
MslsAdminIconTaxonomy ..> MslsAdminIcon
MslsAdminIconTaxonomy ..> MslsAdminIconTaxonomy
MslsAdminIconTaxonomy ..> MslsTaxonomy
MslsBlock ..> MslsOptions
MslsBlock ..> MslsPlugin
MslsBlog ..> MslsAdminIcon
MslsBlog ..> MslsBlog
MslsBlog ..> MslsBlogCollection
MslsBlog ..> MslsOptions
MslsBlogCollection "1" ..> "*" MslsBlog
MslsBlogCollection ..> MslsBlog
MslsBlogCollection ..> MslsOptions
MslsBlogCollection ..> MslsPlugin
MslsContentFilter ..> MslsOptions
MslsContentFilter ..> MslsOutput
MslsContentTypes ..> MslsContentTypes
MslsContentTypes ..> MslsPostType
MslsContentTypes ..> MslsRequest
MslsContentTypes ..> MslsTaxonomy
MslsContentTypes <|-- MslsPostType
MslsContentTypes <|-- MslsTaxonomy
MslsCustomColumn ..> Component_Component
MslsCustomColumn ..> MslsAdminIcon
MslsCustomColumn ..> MslsBlogCollection
MslsCustomColumn ..> MslsOptions
MslsCustomColumn <|-- MslsCustomColumnTaxonomy
MslsCustomColumnTaxonomy ..> MslsOptionsTax
MslsCustomFilter ..> Component_Input_Select
MslsCustomFilter ..> MslsFields
MslsCustomFilter ..> MslsRequest
MslsCustomFilter ..> MslsSqlCacher
MslsCustomFilter ..> Query_TranslatedPostIdQuery
MslsGetSet ..> MslsGetSet
MslsGetSet <|-- MslsLink
MslsGetSet <|-- MslsOptions
MslsJson ..> MslsJson
MslsLanguageArray ..> MslsLanguageArray
MslsLink ..> MslsLink
MslsLink ..> MslsLinkImageOnly
MslsLink ..> MslsLinkTextImage
MslsLink ..> MslsLinkTextOnly
MslsLink <|-- MslsLinkImageOnly
MslsLink <|-- MslsLinkTextImage
MslsLink <|-- MslsLinkTextOnly
MslsMain ..> Component_Component
MslsMain ..> MslsBlogCollection
MslsMain ..> MslsFields
MslsMain ..> MslsLanguageArray
MslsMain ..> MslsOptions
MslsMain ..> MslsOptionsPost
MslsMain ..> MslsPlugin
MslsMain ..> MslsRequest
MslsMain <|-- MslsAdmin
MslsMain <|-- MslsCustomColumn
MslsMain <|-- MslsCustomFilter
MslsMain <|-- MslsMetaBox
MslsMain <|-- MslsOutput
MslsMain <|-- MslsPostTag
MslsMetaBox ..> Component_Component
MslsMetaBox ..> Component_Wrapper
MslsMetaBox ..> ContentImport_MetaBox
MslsMetaBox ..> MslsAdminIcon
MslsMetaBox ..> MslsFields
MslsMetaBox ..> MslsJson
MslsMetaBox ..> MslsOptionsPost
MslsMetaBox ..> MslsPlugin
MslsMetaBox ..> MslsRequest
MslsOptions ..> Component_Icon_IconPng
MslsOptions ..> MslsAdminIcon
MslsOptions ..> MslsOptions
MslsOptions ..> MslsOptionsPost
MslsOptions ..> MslsOptionsQuery
MslsOptions ..> MslsOptionsTax
MslsOptions ..> MslsPlugin
MslsOptions <|-- MslsOptionsPost
MslsOptions <|-- MslsOptionsQuery
MslsOptions <|-- MslsOptionsTax
MslsOptionsQuery ..> MslsOptionsQuery
MslsOptionsQuery ..> MslsOptionsQueryAuthor
MslsOptionsQuery ..> MslsOptionsQueryDay
MslsOptionsQuery ..> MslsOptionsQueryMonth
MslsOptionsQuery ..> MslsOptionsQueryPostType
MslsOptionsQuery ..> MslsOptionsQueryYear
MslsOptionsQuery ..> MslsSqlCacher
MslsOptionsQuery <|-- MslsOptionsQueryAuthor
MslsOptionsQuery <|-- MslsOptionsQueryDay
MslsOptionsQuery <|-- MslsOptionsQueryMonth
MslsOptionsQuery <|-- MslsOptionsQueryPostType
MslsOptionsQuery <|-- MslsOptionsQueryYear
MslsOptionsQueryAuthor ..> MslsSqlCacher
MslsOptionsQueryAuthor ..> Query_AuthorPostsCounterQuery
MslsOptionsQueryDay ..> MslsSqlCacher
MslsOptionsQueryDay ..> Query_DatePostsCounterQuery
MslsOptionsQueryMonth ..> MslsSqlCacher
MslsOptionsQueryMonth ..> Query_MonthPostsCounterQuery
MslsOptionsQueryPostType ..> MslsSqlCacher
MslsOptionsQueryYear ..> MslsSqlCacher
MslsOptionsQueryYear ..> Query_YearPostsCounterQuery
MslsOptionsTax ..> MslsOptionsTax
MslsOptionsTax ..> MslsOptionsTaxTerm
MslsOptionsTax ..> MslsOptionsTaxTermCategory
MslsOptionsTax <|-- MslsOptionsTaxTerm
MslsOptionsTaxTerm <|-- MslsOptionsTaxTermCategory
MslsOutput ..> Map_HrefLang
MslsOutput ..> MslsLink
MslsOutput ..> MslsOptions
MslsOutput ..> MslsOutput
MslsPlugin ..> ContentImport_Service
MslsPlugin ..> MslsAdmin
MslsPlugin ..> MslsAdminBar
MslsPlugin ..> MslsBlock
MslsPlugin ..> MslsContentFilter
MslsPlugin ..> MslsCustomColumn
MslsPlugin ..> MslsCustomColumnTaxonomy
MslsPlugin ..> MslsCustomFilter
MslsPlugin ..> MslsFields
MslsPlugin ..> MslsMetaBox
MslsPlugin ..> MslsOptions
MslsPlugin ..> MslsPostTag
MslsPlugin ..> MslsRequest
MslsPlugin ..> MslsShortCode
MslsPlugin ..> MslsSqlCacher
MslsPlugin ..> MslsWidget
MslsPlugin ..> Query_BlogsInNetworkQuery
MslsPlugin ..> Query_CleanupOptionsQuery
MslsPostTag ..> Component_Component
MslsPostTag ..> MslsAdminIcon
MslsPostTag ..> MslsFields
MslsPostTag ..> MslsJson
MslsPostTag ..> MslsOptionsTax
MslsPostTag ..> MslsPostTagClassic
MslsPostTag ..> MslsRequest
MslsPostTag <|-- MslsPostTagClassic
MslsPostTagClassic ..> Component_Component
MslsPostTagClassic ..> MslsAdminIcon
MslsPostTagClassic ..> MslsBlog
MslsPostTagClassic ..> MslsOptionsTax
MslsPostType ..> MslsRequest
MslsRegistry ..> MslsRegistry
MslsRegistryInstance ..> MslsRegistry
MslsRegistryInstance <|-- ContentImport_AttachmentPathFinder
MslsRegistryInstance <|-- ContentImport_ContentImporter
MslsRegistryInstance <|-- ContentImport_Importers_ImportersBaseFactory
MslsRegistryInstance <|-- ContentImport_Importers_Map
MslsRegistryInstance <|-- ContentImport_LogWriters_AdminNoticeLogger
MslsRegistryInstance <|-- ContentImport_MetaBox
MslsRegistryInstance <|-- ContentImport_Service
MslsRegistryInstance <|-- MslsBlogCollection
MslsRegistryInstance <|-- MslsContentTypes
MslsRegistryInstance <|-- MslsGetSet
MslsRequest ..> MslsFields
MslsShortCode ..> MslsWidget
MslsTaxonomy ..> MslsRequest
MslsWidget ..> Component_Component
Query_AbstractQuery ..> MslsSqlCacher
Query_AbstractQuery <|-- Query_AuthorPostsCounterQuery
Query_AbstractQuery <|-- Query_BlogsInNetworkQuery
Query_AbstractQuery <|-- Query_CleanupOptionsQuery
Query_AbstractQuery <|-- Query_DatePostsCounterQuery
Query_AbstractQuery <|-- Query_MonthPostsCounterQuery
Query_AbstractQuery <|-- Query_TranslatedPostIdQuery
Query_AbstractQuery <|-- Query_YearPostsCounterQuery
@enduml